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/neg/implicits.check | |
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/neg/implicits.check')
-rw-r--r-- | test/files/neg/implicits.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/implicits.check b/test/files/neg/implicits.check index b84586fc16..281f7a6dd2 100644 --- a/test/files/neg/implicits.check +++ b/test/files/neg/implicits.check @@ -2,8 +2,8 @@ implicits.scala:21: error: type mismatch; found : Pos required: ?{val +: ?} Note that implicit conversions are not applicable because they are ambiguous: - both method any2plus in object Sub of type (Any)Sub.Plus - and method pos2int in object Super of type (Pos)int + both method any2plus in object Sub of type (x: Any)Sub.Plus + and method pos2int in object Super of type (p: Pos)int are possible conversion functions from Pos to ?{val +: ?} f(p+1) ^ |