comparison run/s/super_15_A.d @ 1538:5530980c0d49

[Issue 1203] Cannot create Anonclass in loop Frank Benoit <benoit@tionex.de> 2007-04-30 http://d.puremagic.com/issues/show_bug.cgi?id=1203
author thomask
date Mon, 07 May 2007 05:21:43 +0000
parents
children
comparison
equal deleted inserted replaced
1537:457db9394771 1538:5530980c0d49
1 // $HeadURL$
2 // $Date$
3 // $Author$
4
5 // @author@ Frank Benoit <benoit@tionex.de>
6 // @date@ 2007-04-30
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1203
8 // @desc@ [Issue 1203] Cannot create Anonclass in loop
9
10 module dstress.run.s.super_15_A;
11
12 class C {
13 }
14
15 int main(char[][] args){
16 foreach(char[] arg; args){
17 auto c = new class(arg) C {
18 this(char[] arg){
19 }
20 };
21 assert(c);
22 }
23
24 return 0;
25 }