We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03c9b3e commit c998f47Copy full SHA for c998f47
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
+ val tp = denot.info.dropAlias
337
+ assert(tp.isInstanceOf[NamedType], i"denot=$denot info=${denot.info} tp=$tp ${tp.toString}")
338
+ tp.asInstanceOf[NamedType].symbol.sourceSymbol
339
else if (denot.is(Synthetic)) {
340
val linked = denot.linkedClass
341
if (linked.exists && !linked.is(Synthetic))
0 commit comments