summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-12-04 10:06:28 -0800
committerPaul Phillips <paulp@improving.org>2011-12-04 11:28:51 -0800
commit7adb4784bf484f8cf57b5edb612d2c4f34388237 (patch)
tree7698c4b214b020e3ccffad9518b21b2fb0973adb /test/files
parent3e9e4ecf360e6eda5c26f798abfcb9bb882cf772 (diff)
downloadscala-7adb4784bf484f8cf57b5edb612d2c4f34388237.tar.gz
scala-7adb4784bf484f8cf57b5edb612d2c4f34388237.tar.bz2
scala-7adb4784bf484f8cf57b5edb612d2c4f34388237.zip
Tweaked ident suggestions.
Rolled damaru-levenshtein algorithm back to my original "pure" version. Cut max distance to 1. Turned on by default because now it offers nothing unexpected, and removed short-lived -Ysuggest-idents option.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/neg/nopredefs.check2
-rw-r--r--test/files/neg/suggest-similar.check9
-rw-r--r--test/files/neg/suggest-similar.flags1
-rw-r--r--test/files/neg/suggest-similar.scala2
-rw-r--r--test/files/neg/t2870.check2
5 files changed, 6 insertions, 10 deletions
diff --git a/test/files/neg/nopredefs.check b/test/files/neg/nopredefs.check
index 0a0ab34482..e6c1af78a0 100644
--- a/test/files/neg/nopredefs.check
+++ b/test/files/neg/nopredefs.check
@@ -1,4 +1,4 @@
-nopredefs.scala:5: error: not found: value Set
+nopredefs.scala:5: error: not found: value Set (similar: Seq)
val y = Set(3)
^
one error found
diff --git a/test/files/neg/suggest-similar.check b/test/files/neg/suggest-similar.check
index 320c7d0092..0a858aaf2e 100644
--- a/test/files/neg/suggest-similar.check
+++ b/test/files/neg/suggest-similar.check
@@ -1,13 +1,10 @@
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:9: error: not found: value identiyt (similar: identity)
+ Nil map identiyt
^
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
+three errors found
diff --git a/test/files/neg/suggest-similar.flags b/test/files/neg/suggest-similar.flags
deleted file mode 100644
index 66bb23c396..0000000000
--- a/test/files/neg/suggest-similar.flags
+++ /dev/null
@@ -1 +0,0 @@
--Ysuggest-idents \ No newline at end of file
diff --git a/test/files/neg/suggest-similar.scala b/test/files/neg/suggest-similar.scala
index ae18c6ea62..ff327478fe 100644
--- a/test/files/neg/suggest-similar.scala
+++ b/test/files/neg/suggest-similar.scala
@@ -6,6 +6,6 @@ import Dingus._
class A {
flippitx = 123
- Nil map identipoo
+ Nil map identiyt
new Bingus
}
diff --git a/test/files/neg/t2870.check b/test/files/neg/t2870.check
index 6577577d3f..72bc0d98a1 100644
--- a/test/files/neg/t2870.check
+++ b/test/files/neg/t2870.check
@@ -1,4 +1,4 @@
-t2870.scala:1: error: not found: type Jar
+t2870.scala:1: error: not found: type Jar (similar: Jars)
class Jars(jar: Jar)
^
t2870.scala:6: error: illegal cyclic reference involving value <import>