Mercurial > projects > dstress
view run/m/mixin_26_A.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | 54d2cf6154ba |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Boris Kolar <boris.kolar@globera.com> // @date@ 2007-01-23 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=873 // @desc@ [Issue 873] Scope dependant compilation error module dstress.run.m.mixin_26_A; template Factory() { Foo bar() { return Foo.init; } } struct Foo { mixin Factory!(); int i = 0x12_34_FF_AA; } int main() { Foo f; if(f.bar() != Foo.init){ assert(0); } if(f.bar().i == 0x12_34_FF_AA){ return 0; } }