Mercurial > projects > dstress
view undefined/class_19_A.d @ 1589:c82cb55ee1ea
Fix module headers.
Move static_34_A to nocompile: cannot call new for a nested class within a static function.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 25 Aug 2008 22:05:07 +0200 |
parents | 5c568eb016c0 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Deewiant <deewiant.doesnotlike.spam@gmail.com> // @date@ 2005-10-14 // @uri@ news:dionmt$afm$1@digitaldaemon.com module dstress.undefined.class_19_A; class Outer{ this(){ } class Inner{ this(){ } Inner foo(){ return new Inner(); } } Inner dummy(){ Inner i = new Inner; return i.foo(); } } int main(){ Outer o = new Outer(); Outer.Inner i = o.dummy(); assert(i); return 0; }