Skip to content

Commit 26a39ca

Browse files
committed
Make sure language imports are detectable syntactically
Make sure that something is a language import if and only if it looks like one. i.e. is of one of the forms import language.xyz import scala.language.xyz import _root_.scala.language.xyz
1 parent 3b741d6 commit 26a39ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/ImportInfo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class ImportInfo(symf: Context ?=> Symbol,
188188

189189
private var featureCache: SimpleIdentityMap[TermName, java.lang.Boolean] = SimpleIdentityMap.empty
190190

191-
/** Does this import clause or a preceding import clause enable or disable `feature`?
191+
/** Does this import clause enable or disable `feature`?
192192
* @param feature See featureImported for a description
193193
* @return Some(true) if `feature` is imported
194194
* Some(false) if `feature` is excluded

0 commit comments

Comments
 (0)