Mercurial > projects > dstress
view run/b/bug_toir_182_D.d @ 1370:ab0e4691f71e
[Issue 853] Internal error: toir.c 182
Johan Granberg <lijat.me@gmail.com>
2007-01-17
http://d.puremagic.com/issues/show_bug.cgi?id=853
author | thomask |
---|---|
date | Tue, 27 Feb 2007 16:41:48 +0000 |
parents | |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Johan Granberg <lijat.me@gmail.com> // @date@ 2007-01-17 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=853 // @desc@ [Issue 853] Internal error: toir.c 182 module dstress.run.b.bug_toir_182_D; class StackContext{ this(void delegate() dg){ } } class Test{ StackContext context; public void init(){ context = new StackContext({}); } this(){ init(); } } int main(){ Test t = new Test(); if(!t){ assert(0); } if(!t.context){ assert(0); } return 0; }