[Nice-commit] Nice/testsuite/compiler/classes initializer.testsuite,1.14,1.15
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2004-06-11 05:01:49
|
Update of /cvsroot/nice/Nice/testsuite/compiler/classes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15364/testsuite/compiler/classes Modified Files: initializer.testsuite Log Message: Correctly generate code for method references from inside custom constructors and instance initializers (fixes #969777). Index: initializer.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/initializer.testsuite,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** initializer.testsuite 15 Jan 2004 21:39:19 -0000 1.14 --- initializer.testsuite 11 Jun 2004 05:01:39 -0000 1.15 *************** *** 200,201 **** --- 200,218 ---- } } + + /// PASS + let b = new B(); + // Usage of closure inside an instance initializer + /// Toplevel + class A { + void foo() {} + } + + class B extends A { + { + [0].foreach(fst); + this.foo(); + } + } + + void fst(int i) {} |