Mercurial > projects > ldc
comparison tests/mini/nested14.d @ 452:30ef3c7bddca
Fixed problems with nested 'this'. Fixes #39 .
Fixed problem with debug info order of intrinsic calls (func.start after declare).
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 02 Aug 2008 00:50:39 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
451:4d9108f1fbf4 | 452:30ef3c7bddca |
---|---|
1 module mini.nested14; | |
2 | |
3 extern(C) int printf(char*, ...); | |
4 | |
5 class C | |
6 { | |
7 void foo() | |
8 { | |
9 void bar() | |
10 { | |
11 car(); | |
12 } | |
13 | |
14 bar(); | |
15 } | |
16 | |
17 void car() | |
18 { | |
19 printf("great\n"); | |
20 } | |
21 } | |
22 | |
23 void main() | |
24 { | |
25 scope c = new C; | |
26 c.foo(); | |
27 } |