annotate run/b/bug_e2ir_1098_D.d @ 1406:45dbf7a80237

[Issue 986] Internal error: e2ir.c 1098 Frank Benoit <benoit@tionex.de> 2007-02-19 http://d.puremagic.com/issues/show_bug.cgi?id=986
author thomask
date Thu, 08 Mar 2007 16:28:36 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1406
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
1 // $HeadURL$
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
2 // $Date$
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
3 // $Author$
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
4
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
5 // @author@ Frank Benoit <benoit@tionex.de>
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
6 // @date@ 2007-02-19
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=986
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
8 // @desc@ [Issue 986] Internal error: e2ir.c 1098
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
9
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
10 module dstress.run.b.bug_e2ir_1098_C;
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
11
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
12 class Adapter {
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
13 void func(){
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
14 }
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
15 }
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
16
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
17 class Foo {
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
18 class AnonAdapter : Adapter {
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
19 }
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
20 }
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
21
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
22 int main(){
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
23 Foo f = new Foo();
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
24 auto aa = f.new AnonAdapter();
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
25 Adapter a = cast( Adapter )(aa);
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
26 return 0;
45dbf7a80237 [Issue 986] Internal error: e2ir.c 1098
thomask
parents:
diff changeset
27 }