aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-11-05 13:36:29 +0100
committerGitHub <noreply@github.com>2016-11-05 13:36:29 +0100
commita55a2607c7376ed81141ef958d6a8eeaeea8fd72 (patch)
treed872141dd714f4e9426891f82269d4c11d42f6bb /src/dotty/tools/dotc/core
parent56f6933c7d164a446daa90099ffd3ce31647f6e0 (diff)
parent8c857cd29f48c3c2badfd37a7f22e8a24929d796 (diff)
downloaddotty-a55a2607c7376ed81141ef958d6a8eeaeea8fd72.tar.gz
dotty-a55a2607c7376ed81141ef958d6a8eeaeea8fd72.tar.bz2
dotty-a55a2607c7376ed81141ef958d6a8eeaeea8fd72.zip
Merge pull request #1657 from dotty-staging/fix-#1638
Fix #1638: Don't import when typing a package clause
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r--src/dotty/tools/dotc/core/Mode.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Mode.scala b/src/dotty/tools/dotc/core/Mode.scala
index c16c3f15b..406a84af6 100644
--- a/src/dotty/tools/dotc/core/Mode.scala
+++ b/src/dotty/tools/dotc/core/Mode.scala
@@ -81,4 +81,9 @@ object Mode {
val ReadPositions = newMode(16, "ReadPositions")
val PatternOrType = Pattern | Type
+
+ /** We are elaborating the fully qualified name of a package clause.
+ * In this case, identifiers should never be imported.
+ */
+ val InPackageClauseName = newMode(17, "InPackageClauseName")
}