# HG changeset patch # User thomask # Date 1175850930 0 # Node ID cfcb3568d70fef87497fd802f514f248d65a652c # Parent 273e457eb77df7d5cd15c5252e6f400424c35749 [Issue 1099] weird tupleof behavior in mixins Tomasz Stachowiak 2007-04-05 http://d.puremagic.com/issues/show_bug.cgi?id=1099 diff -r 273e457eb77d -r cfcb3568d70f nocompile/t/tupelof_01_A.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/t/tupelof_01_A.d Fri Apr 06 09:15:30 2007 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Tomasz Stachowiak +// @date@ 2007-04-05 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1099 +// @desc@ [Issue 1099] weird tupleof behavior in mixins + +module dstress.nocompile.t.tupleof_01_A; + +template Mix(int a) { + alias typeof(*this) ThisType; + static assert (ThisType.init.tupleof.length == a); +} + + +struct Foo { + mixin Mix!(0); + int foo; + mixin Mix!(1); + int bar; + mixin Mix!(2); +}