comparison tests/mini/nested15.d @ 468:45a67b6f1310

Removed the 'needsstorage' thing from Dsymbol. Arguments are not always given storage when applicable. This is not longer treat specially in this regard. Code for accessing nested variables and contexts rewritten. Probably more. Fairly well tested.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 02:59:34 +0200
parents
children
comparison
equal deleted inserted replaced
467:261b05cf4d1c 468:45a67b6f1310
1 // $HeadURL: svn://svn.berlios.de/dstress/trunk/run/t/this_13_A.d $
2 // $Date: 2006-12-31 20:59:08 +0100 (Sun, 31 Dec 2006) $
3 // $Author: thomask $
4
5 // @author@ Frank Benoit <benoit@tionex.de>
6 // @date@ 2006-10-09
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=419
8 // @desc@ [Issue 419] New: Anonymous classes are not working.
9
10 // added to mini to catch regressions earlier
11
12 module mini.nested15;
13
14 class I {
15 abstract void get( char[] s );
16 }
17
18 class C{
19 void init(){
20 I i = new class() I {
21 void get( char[] s ){
22 func();
23 }
24 };
25 }
26 void func( ){ }
27 }
28
29 int main(){
30 C c = new C();
31 c.init();
32
33 return 0;
34 }
35