summaryrefslogtreecommitdiff
path: root/test/files/jvm/t1143-2
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-05-30 07:36:31 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-05-30 07:36:31 +0000
commit390ccacfe0caa4c07af6193dec3e172c0fcd7896 (patch)
tree001ff4a00bd9d8cab651d9bf245bfc795748d829 /test/files/jvm/t1143-2
parent661f1ba10e5062fd987c4cafe43ad1f0dc3f5491 (diff)
downloadscala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.gz
scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.tar.bz2
scala-390ccacfe0caa4c07af6193dec3e172c0fcd7896.zip
Named and default arguments
- MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy"
Diffstat (limited to 'test/files/jvm/t1143-2')
-rw-r--r--test/files/jvm/t1143-2/t1143-2.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/jvm/t1143-2/t1143-2.scala b/test/files/jvm/t1143-2/t1143-2.scala
index 58bc1d763e..44b1febd8b 100644
--- a/test/files/jvm/t1143-2/t1143-2.scala
+++ b/test/files/jvm/t1143-2/t1143-2.scala
@@ -52,7 +52,7 @@ class Main {
var pass = "pass"
def main(args : Array[String]) : Unit = {
val f = new Form {
- val p = new Printer( new VarModel( pass, pass=_ ) );
+ val p = new Printer( new VarModel( pass, s => pass = s ) );
p.print
}
()