summaryrefslogtreecommitdiff
path: root/test/files/neg/no-predef.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-05-07 06:54:53 +0000
committerPaul Phillips <paulp@improving.org>2011-05-07 06:54:53 +0000
commitb72a9b1455f8f462192f0a6eb3a7544e7600505a (patch)
tree802af9c6687290397830f7f3bd6eeaf8a2517c2a /test/files/neg/no-predef.scala
parent6b58c8522dfcebc267a24588d7f67def13ebc7d1 (diff)
downloadscala-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.scala')
-rw-r--r--test/files/neg/no-predef.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/no-predef.scala b/test/files/neg/no-predef.scala
new file mode 100644
index 0000000000..8466c7909f
--- /dev/null
+++ b/test/files/neg/no-predef.scala
@@ -0,0 +1,5 @@
+class NoPredef {
+ def f1 = 5L: java.lang.Long
+ def f2 = new java.lang.Long(5) : Long
+ def f3 = "abc" map (_ + 1)
+} \ No newline at end of file