diff options
author | Paul Phillips <paulp@improving.org> | 2010-11-18 01:11:37 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-11-18 01:11:37 +0000 |
commit | a86453a5eed21abf5dfa5fd1d0321c8eb0298302 (patch) | |
tree | 360448d50fe40940a3d9dfb255801a93b28da07f /test/files/neg/names-defaults-neg.check | |
parent | 48451f980e1a252a0470e72dfd944b1eee52891b (diff) | |
download | scala-a86453a5eed21abf5dfa5fd1d0321c8eb0298302.tar.gz scala-a86453a5eed21abf5dfa5fd1d0321c8eb0298302.tar.bz2 scala-a86453a5eed21abf5dfa5fd1d0321c8eb0298302.zip |
Some refinement of the error messages when the ...
Some refinement of the error messages when the found and required types
have the same simple names. No longer must we watch people scratch their
heads at such messages as:
found : scala.collection.Set[String]
required: Set[String]
Now so clear you could enjoy a movie through it:
found : scala.collection.Set[String]
required: scala.collection.immutable.Set[String]
No review.
Diffstat (limited to 'test/files/neg/names-defaults-neg.check')
-rw-r--r-- | test/files/neg/names-defaults-neg.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/neg/names-defaults-neg.check b/test/files/neg/names-defaults-neg.check index 743496e0e1..4882c01e4c 100644 --- a/test/files/neg/names-defaults-neg.check +++ b/test/files/neg/names-defaults-neg.check @@ -89,13 +89,13 @@ names-defaults-neg.scala:76: error: no type parameters for method test4: (x: T[T --- because --- argument expression's type is not compatible with formal parameter type; found : List[Int] - required: ?T[ ?T[ scala.List[?T[ X forSome { type X } ]] ] ] + required: ?T[ ?T[ List[?T[ X forSome { type X } ]] ] ] Error occurred in an application involving default arguments. test4() ^ names-defaults-neg.scala:79: error: type mismatch; found : List[Int] - required: scala.List[scala.List[?]] + required: List[List[?]] def test6[T](x: List[List[T]] = List(1,2)) = x ^ names-defaults-neg.scala:82: error: type mismatch; |