From a8136fff2cc2f7c75f0a6253db79c3e339f56c98 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 26 Aug 2016 10:07:19 +0200 Subject: Fix #1286: Error on inexistent imports that are not used. This commit also fixes #1583. --- tests/repl/imports.check | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/repl/imports.check') 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: ---------------------------------------------------------------------------------------------------- +8 |import util.foo + | ^^^ + | foo is not a member of util +scala> import util.foo.bar +-- [E008] Member Not Found Error: ---------------------------------------------------------------------------- +8 |import util.foo.bar + | ^^^^^^^^ + | value `foo` is not a member of util.type - did you mean `util.Left`? scala> :quit -- cgit v1.2.3