Mercurial > projects > dstress
view run/m/mixin_24_C.d @ 1619:bebc7472a832
Fix #7.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:55:30 +0100 |
parents | daef239f37cf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Sean Kelly <sean@f4.ca> // @date@ 2006-09-11 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=343 // @desc@ [Issue 343] New: Compile error using mixin containing struct module dstress.run.m.mixin_24_C; typedef int MyInt = 1; struct S{ MyInt i; } template T(){ S s; } int main(){ mixin T!(); if(s.i != cast(MyInt)1){ assert(0); } return 0; }