From 7adb4784bf484f8cf57b5edb612d2c4f34388237 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sun, 4 Dec 2011 10:06:28 -0800 Subject: 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. --- test/files/neg/nopredefs.check | 2 +- test/files/neg/suggest-similar.check | 9 +++------ test/files/neg/suggest-similar.flags | 1 - test/files/neg/suggest-similar.scala | 2 +- test/files/neg/t2870.check | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 test/files/neg/suggest-similar.flags (limited to 'test/files') 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 -- cgit v1.2.3