Skip to content

Commit e0d2756

Browse files
committed
Drop toDenot call in Feature
1 parent a8b6646 commit e0d2756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/config/Feature.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ object Feature:
2323
def toPrefix(sym: Symbol): String =
2424
if !sym.exists || sym == defn.LanguageModule.moduleClass then ""
2525
else toPrefix(sym.owner) + sym.name.stripModuleClassSuffix + "."
26-
val prefix = if owner.exists then toPrefix(owner) else ""
26+
val prefix = if owner ne NoSymbol then toPrefix(owner) else ""
2727
ctx.base.settings.language.value.contains(prefix + feature)
2828

2929
/** Is `feature` enabled by by an import? This is the case if the feature

0 commit comments

Comments
 (0)