summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-03 10:07:48 -0700
committerPaul Phillips <paulp@improving.org>2013-01-30 03:50:40 -0800
commitd2316df920ffa4804fe51e8f8780240c46efa982 (patch)
treeffa35fa116e9367dc38b3539602b885da3f15dc9 /test/files/neg
parent05882ebe10f2f72ff5273b198cec02d892b3fc45 (diff)
downloadscala-d2316df920ffa4804fe51e8f8780240c46efa982.tar.gz
scala-d2316df920ffa4804fe51e8f8780240c46efa982.tar.bz2
scala-d2316df920ffa4804fe51e8f8780240c46efa982.zip
SI-6426, importable _.
[backport] Prohibit `_` as an identifier, it can only bring badness.
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t6426.check7
-rw-r--r--test/files/neg/t6426.scala5
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t6426.check b/test/files/neg/t6426.check
new file mode 100644
index 0000000000..149f74c4de
--- /dev/null
+++ b/test/files/neg/t6426.check
@@ -0,0 +1,7 @@
+t6426.scala:4: error: wildcard invalid as backquoted identifier
+ println(`_`.Buffer(0))
+ ^
+t6426.scala:5: error: ')' expected but '}' found.
+}
+^
+two errors found
diff --git a/test/files/neg/t6426.scala b/test/files/neg/t6426.scala
new file mode 100644
index 0000000000..a27d18eb58
--- /dev/null
+++ b/test/files/neg/t6426.scala
@@ -0,0 +1,5 @@
+class A {
+ import collection.{mutable => _, _}
+
+ println(`_`.Buffer(0))
+}