summaryrefslogtreecommitdiff
path: root/test/files/neg/suggest-similar.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-03 15:27:52 -0800
committerPaul Phillips <paulp@improving.org>2011-12-03 20:04:10 -0800
commit3e9e4ecf360e6eda5c26f798abfcb9bb882cf772 (patch)
treea0e9d34abff1403e30cb562ee0733cbe3d6496d7 /test/files/neg/suggest-similar.check
parentf7d436a0abf350ff573f155392393c357f489a93 (diff)
downloadscala-3e9e4ecf360e6eda5c26f798abfcb9bb882cf772.tar.gz
scala-3e9e4ecf360e6eda5c26f798abfcb9bb882cf772.tar.bz2
scala-3e9e4ecf360e6eda5c26f798abfcb9bb882cf772.zip
Added -Ysuggest-idents.
Suggest possible alternatives when an identifier is not in scope. % scala -Ysuggest-idents scala> import scala.collection.mutable._ import scala.collection.mutable._ scala> new MistBuffer <console>:11: error: not found: type MistBuffer (similar: ListBuffer, Buffer) new MistBuffer ^ Too bad, no MistBuffer. We'll settle for ListBuffer.
Diffstat (limited to 'test/files/neg/suggest-similar.check')
-rw-r--r--test/files/neg/suggest-similar.check13
1 files changed, 13 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