aboutsummaryrefslogtreecommitdiff
path: root/tests/repl/imports.check
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2016-08-26 10:07:19 +0200
committerNicolas Stucki <nicolas.stucki@gmail.com>2016-10-21 09:16:32 +0200
commita8136fff2cc2f7c75f0a6253db79c3e339f56c98 (patch)
tree8c99fb1e84d06585891bcd9444242a0fcff3aa86 /tests/repl/imports.check
parent6070cce6a7887b6b3c65421bf0c37c92aec3182e (diff)
downloaddotty-a8136fff2cc2f7c75f0a6253db79c3e339f56c98.tar.gz
dotty-a8136fff2cc2f7c75f0a6253db79c3e339f56c98.tar.bz2
dotty-a8136fff2cc2f7c75f0a6253db79c3e339f56c98.zip
Fix #1286: Error on inexistent imports that are not used.
This commit also fixes #1583.
Diffstat (limited to 'tests/repl/imports.check')
-rw-r--r--tests/repl/imports.check10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/repl/imports.check b/tests/repl/imports.check
index 26b725637..b6d9ae8a7 100644
--- a/tests/repl/imports.check
+++ b/tests/repl/imports.check
@@ -15,4 +15,14 @@ scala> buf += xs
|
scala> buf ++= xs
res1: scala.collection.mutable.ListBuffer[Int] = ListBuffer(1, 2, 3)
+scala> import util.foo
+-- Error: <console> ----------------------------------------------------------------------------------------------------
+8 |import util.foo
+ | ^^^
+ | foo is not a member of util
+scala> import util.foo.bar
+-- [E008] Member Not Found Error: <console> ----------------------------------------------------------------------------
+8 |import util.foo.bar
+ | ^^^^^^^^
+ | value `foo` is not a member of util.type - did you mean `util.Left`?
scala> :quit