[Nice-commit] Nice/testsuite/compiler/methods optionalParameters.testsuite,1.4,1.5
Brought to you by:
bonniot
From: <bo...@us...> - 2003-05-12 18:00:43
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods In directory sc8-pr-cvs1:/tmp/cvs-serv2439/testsuite/compiler/methods Modified Files: optionalParameters.testsuite Log Message: Allow method parameter's default values to refer to this when the method is declared inside a class. Index: optionalParameters.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/optionalParameters.testsuite,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** optionalParameters.testsuite 12 May 2003 11:11:44 -0000 1.4 --- optionalParameters.testsuite 12 May 2003 18:00:39 -0000 1.5 *************** *** 121,122 **** --- 121,132 ---- } } + + /// PASS + assert new A(x: 13).getValue() == 13; + + /// Toplevel + class A + { + int x; + int getValue(int v = this.x) = v; + } |