[Nice-commit] Nice/testsuite/compiler/classes initializer.testsuite,1.1,1.2
Brought to you by:
bonniot
From: <bo...@us...> - 2003-07-28 11:13:42
|
Update of /cvsroot/nice/Nice/testsuite/compiler/classes In directory sc8-pr-cvs1:/tmp/cvs-serv15032/testsuite/compiler/classes Modified Files: initializer.testsuite Log Message: Prevent the 'this' symbol from leaking outside the scope of instance initializers. Index: initializer.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/initializer.testsuite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** initializer.testsuite 18 Jul 2003 22:56:49 -0000 1.1 --- initializer.testsuite 28 Jul 2003 10:51:35 -0000 1.2 *************** *** 83,84 **** --- 83,97 ---- { T y = x; } } + + /// PASS + /// Toplevel + class test { + {this.doTest();} + void doTest() {} + } + + class test2 { + {this.doTest2();} + void doTest2() {} + } + |