We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b6646 commit e0d2756Copy full SHA for e0d2756
compiler/src/dotty/tools/dotc/config/Feature.scala
@@ -23,7 +23,7 @@ object Feature:
23
def toPrefix(sym: Symbol): String =
24
if !sym.exists || sym == defn.LanguageModule.moduleClass then ""
25
else toPrefix(sym.owner) + sym.name.stripModuleClassSuffix + "."
26
- val prefix = if owner.exists then toPrefix(owner) else ""
+ val prefix = if owner ne NoSymbol then toPrefix(owner) else ""
27
ctx.base.settings.language.value.contains(prefix + feature)
28
29
/** Is `feature` enabled by by an import? This is the case if the feature
0 commit comments