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 a25c33f commit de1b715Copy full SHA for de1b715
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -313,7 +313,9 @@ object Symbols extends SymUtils {
313
else if (denot.is(ModuleVal))
314
this.moduleClass.sourceSymbol // The module val always has a zero-extent position
315
else if denot.is(ExportedType) then
316
- denot.info.dropAlias.asInstanceOf[NamedType].symbol.sourceSymbol
+ denot.info.dropAlias.finalResultType.typeConstructor match
317
+ case tp: NamedType => tp.symbol.sourceSymbol
318
+ case _ => this
319
else if (denot.is(Synthetic)) {
320
val linked = denot.linkedClass
321
if (linked.exists && !linked.is(Synthetic))
0 commit comments