summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/suggest-similar.check13
-rw-r--r--test/files/neg/suggest-similar.flags1
-rw-r--r--test/files/neg/suggest-similar.scala11
3 files changed, 25 insertions, 0 deletions
diff --git a/test/files/neg/suggest-similar.check b/test/files/neg/suggest-similar.check
new file mode 100644
index 0000000000..320c7d0092
--- /dev/null
+++ b/test/files/neg/suggest-similar.check
@@ -0,0 +1,13 @@
+suggest-similar.scala:8: error: not found: value flippitx (similar: flippity)
+ flippitx = 123
+ ^
+suggest-similar.scala:9: error: not found: value identipoo (similar: identity)
+ Nil map identipoo
+ ^
+suggest-similar.scala:10: error: not found: type Bingus (similar: Dingus)
+ new Bingus
+ ^
+suggest-similar.scala:11: error: value bap is not a member of object Nil
+ Nil bap identity
+ ^
+four errors found
diff --git a/test/files/neg/suggest-similar.flags b/test/files/neg/suggest-similar.flags
new file mode 100644
index 0000000000..66bb23c396
--- /dev/null
+++ b/test/files/neg/suggest-similar.flags
@@ -0,0 +1 @@
+-Ysuggest-idents \ No newline at end of file
diff --git a/test/files/neg/suggest-similar.scala b/test/files/neg/suggest-similar.scala
new file mode 100644
index 0000000000..ae18c6ea62
--- /dev/null
+++ b/test/files/neg/suggest-similar.scala
@@ -0,0 +1,11 @@
+class Dingus
+object Dingus {
+ var flippity = 1
+}
+import Dingus._
+
+class A {
+ flippitx = 123
+ Nil map identipoo
+ new Bingus
+}