diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-07 06:54:53 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-07 06:54:53 +0000 |
commit | b72a9b1455f8f462192f0a6eb3a7544e7600505a (patch) | |
tree | 802af9c6687290397830f7f3bd6eeaf8a2517c2a /test/files/neg/no-predef.check | |
parent | 6b58c8522dfcebc267a24588d7f67def13ebc7d1 (diff) | |
download | scala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.tar.gz scala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.tar.bz2 scala-b72a9b1455f8f462192f0a6eb3a7544e7600505a.zip |
Made -Yno-predef work again, also in the repl.
do I import" code to notice _root_.scala.Predef too. Moved some of the
overly specialized, called-only-once functions in treeInfo inside the
one function which needs them. References #1931. No review.
Diffstat (limited to 'test/files/neg/no-predef.check')
-rw-r--r-- | test/files/neg/no-predef.check | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/neg/no-predef.check b/test/files/neg/no-predef.check new file mode 100644 index 0000000000..4f09c1c31f --- /dev/null +++ b/test/files/neg/no-predef.check @@ -0,0 +1,14 @@ +no-predef.scala:2: error: type mismatch; + found : scala.Long(5L) + required: java.lang.Long + def f1 = 5L: java.lang.Long + ^ +no-predef.scala:3: error: type mismatch; + found : java.lang.Long + required: scala.Long + def f2 = new java.lang.Long(5) : Long + ^ +no-predef.scala:4: error: value map is not a member of java.lang.String + def f3 = "abc" map (_ + 1) + ^ +three errors found |