annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1538
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
1 // $HeadURL$
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
2 // $Date$
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
3 // $Author$
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
4
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
5 // @author@ Frank Benoit <benoit@tionex.de>
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
6 // @date@ 2007-04-30
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1203
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
8 // @desc@ [Issue 1203] Cannot create Anonclass in loop
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
9
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
10 module dstress.run.s.super_15_A;
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
11
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
12 class C {
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
13 }
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
14
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
15 int main(char[][] args){
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
16 foreach(char[] arg; args){
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
17 auto c = new class(arg) C {
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
18 this(char[] arg){
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
19 }
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
20 };
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
21 assert(c);
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
22 }
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
23
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
24 return 0;
5530980c0d49 [Issue 1203] Cannot create Anonclass in loop
thomask
parents:
diff changeset
25 }