diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 07:36:31 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-05-30 07:36:31 +0000 |
commit | 390ccacfe0caa4c07af6193dec3e172c0fcd7896 (patch) | |
tree | 001ff4a00bd9d8cab651d9bf245bfc795748d829 /test/files/jvm | |
parent | 661f1ba10e5062fd987c4cafe43ad1f0dc3f5491 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/jvm/interpreter.check | 8 | ||||
-rw-r--r-- | test/files/jvm/t1143-2/t1143-2.scala | 2 | ||||
-rw-r--r-- | test/files/jvm/t1143.scala | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/files/jvm/interpreter.check b/test/files/jvm/interpreter.check index 2e18987d0f..07c41b6a1f 100644 --- a/test/files/jvm/interpreter.check +++ b/test/files/jvm/interpreter.check @@ -5,7 +5,7 @@ scala> scala> scala> res0: Int = 7 -scala> | | | | gcd: (Int,Int)Int +scala> | | | | gcd: (x: Int,y: Int)Int scala> five: Int = 5 @@ -59,7 +59,7 @@ scala> defined class Foo scala> defined class Bar -scala> foo2bar: (Foo)Bar +scala> foo2bar: (foo: Foo)Bar scala> bar: Bar = Bar(3) @@ -206,11 +206,11 @@ missing combination Term def f(e: Exp) = e match { // non-exhaustive warning here ^ -f: (Exp)Int +f: (e: Exp)Int scala> scala> -plusOne: (Int)Int +plusOne: (x: Int)Int res0: Int = 6 res0: java.lang.String = after reset <console>:5: error: not found: value plusOne 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 } () diff --git a/test/files/jvm/t1143.scala b/test/files/jvm/t1143.scala index 4f4557a2d6..7dd374f432 100644 --- a/test/files/jvm/t1143.scala +++ b/test/files/jvm/t1143.scala @@ -55,7 +55,7 @@ class Main { var pass = "pass" def main(args: Array[String]) { val f = new Form { - val p = new Printer(new VarModel(pass, pass=_)) + val p = new Printer(new VarModel(pass, s => pass = s)) } () } |