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 03c9b3e commit 4e532e9Copy full SHA for 4e532e9
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -333,7 +333,9 @@ object Symbols extends SymUtils {
333
else if (denot.is(ModuleVal))
334
this.moduleClass.sourceSymbol // The module val always has a zero-extent position
335
else if denot.is(ExportedType) then
336
- denot.info.dropAlias.asInstanceOf[NamedType].symbol.sourceSymbol
+ denot.info.dropAlias.finalResultType.typeConstructor match
337
+ case tp: NamedType => tp.symbol.sourceSymbol
338
+ case _ => this
339
else if (denot.is(Synthetic)) {
340
val linked = denot.linkedClass
341
if (linked.exists && !linked.is(Synthetic))
0 commit comments