aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1638.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-11-03 20:29:13 +0100
committerMartin Odersky <odersky@gmail.com>2016-11-03 20:29:21 +0100
commit8c857cd29f48c3c2badfd37a7f22e8a24929d796 (patch)
tree10ad861352bb6db2159896236c06262ec1cdea16 /tests/pos/i1638.scala
parent98a92c6f4ec743edb9465071dcfd43f17dbf054b (diff)
downloaddotty-8c857cd29f48c3c2badfd37a7f22e8a24929d796.tar.gz
dotty-8c857cd29f48c3c2badfd37a7f22e8a24929d796.tar.bz2
dotty-8c857cd29f48c3c2badfd37a7f22e8a24929d796.zip
Fix #1638: Don't import when typing a package clause
When typing the first identifier of a package clause, disable imports, as package clauses are never imported. Fixes #1638.
Diffstat (limited to 'tests/pos/i1638.scala')
-rw-r--r--tests/pos/i1638.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pos/i1638.scala b/tests/pos/i1638.scala
new file mode 100644
index 000000000..299905aea
--- /dev/null
+++ b/tests/pos/i1638.scala
@@ -0,0 +1,3 @@
+package util.util
+
+class C