Mercurial > projects > dstress
view run/m/mixin_16_C.d @ 1380:902d2c168029
updates for DMD-1.007
author | thomask |
---|---|
date | Sun, 04 Mar 2007 11:01:08 +0000 |
parents | 9dcac8d4e97f |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Chris Miller <chris@dprogramming.com> // @date@ 2006-01-30 // @uri@ news:op.s36xvez5po9bzi@moe // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=711 module dstress.run.m.mixin_16_C; int step; template Mixer(){ char test(){ assert(0); } } class Foo{ char test(){ if(step == 2){ step++; return 'F'; } } } class FooBar : Foo{ mixin Mixer mixer; char test(){ if(step == 1){ step++; return super.test(); } } } int main(){ FooBar f = new FooBar; if(step == 0){ step++; if(f.test() == 'F'){ if(step == 3){ return 0; } assert(0); } assert(0); } }