diff options
author | Martin Odersky <odersky@gmail.com> | 2016-11-03 20:29:13 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-11-03 20:29:21 +0100 |
commit | 8c857cd29f48c3c2badfd37a7f22e8a24929d796 (patch) | |
tree | 10ad861352bb6db2159896236c06262ec1cdea16 /src/dotty/tools/dotc/core/Mode.scala | |
parent | 98a92c6f4ec743edb9465071dcfd43f17dbf054b (diff) | |
download | dotty-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 'src/dotty/tools/dotc/core/Mode.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Mode.scala | 5 |
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 7a9bb0572..8dda88789 100644 --- a/src/dotty/tools/dotc/core/Mode.scala +++ b/src/dotty/tools/dotc/core/Mode.scala @@ -93,4 +93,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") } |