From 26a39cab967c8425401645361c73632d31e07830 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 1 Feb 2021 19:51:13 +0100 Subject: [PATCH] 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 --- compiler/src/dotty/tools/dotc/typer/ImportInfo.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/typer/ImportInfo.scala b/compiler/src/dotty/tools/dotc/typer/ImportInfo.scala index 3d43cc5976c8..6388325f4fa7 100644 --- a/compiler/src/dotty/tools/dotc/typer/ImportInfo.scala +++ b/compiler/src/dotty/tools/dotc/typer/ImportInfo.scala @@ -188,7 +188,7 @@ class ImportInfo(symf: Context ?=> Symbol, private var featureCache: SimpleIdentityMap[TermName, java.lang.Boolean] = SimpleIdentityMap.empty - /** Does this import clause or a preceding import clause enable or disable `feature`? + /** Does this import clause enable or disable `feature`? * @param feature See featureImported for a description * @return Some(true) if `feature` is imported * Some(false) if `feature` is excluded