diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-08-26 10:07:19 +0200 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2016-10-21 09:16:32 +0200 |
commit | a8136fff2cc2f7c75f0a6253db79c3e339f56c98 (patch) | |
tree | 8c99fb1e84d06585891bcd9444242a0fcff3aa86 /tests/neg/i1286.scala | |
parent | 6070cce6a7887b6b3c65421bf0c37c92aec3182e (diff) | |
download | dotty-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/neg/i1286.scala')
-rw-r--r-- | tests/neg/i1286.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/neg/i1286.scala b/tests/neg/i1286.scala new file mode 100644 index 000000000..40db9ab1d --- /dev/null +++ b/tests/neg/i1286.scala @@ -0,0 +1,16 @@ +import scala.idontexist // error +import scala.io.Idontexist // error + +import scala.io +import io.Idontexist2 // error + +import scala.io.{ AnsiColor, Idontexist3 } // error + +import scala.io.{ Idontexist4 => Foo } // error +import scala.io.{ Idontexist5 => _ } // error + +import scala.language.dynamics +import scala.language.noAutoTupling +import scala.language.idontexist // error + +object Test |