Skip to content

Commit

Permalink
assert it
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jan 19, 2024
1 parent 03c9b3e commit c998f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/src/dotty/tools/dotc/core/Symbols.scala
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ object Symbols extends SymUtils {
else if (denot.is(ModuleVal))
this.moduleClass.sourceSymbol // The module val always has a zero-extent position
else if denot.is(ExportedType) then
denot.info.dropAlias.asInstanceOf[NamedType].symbol.sourceSymbol
val tp = denot.info.dropAlias
assert(tp.isInstanceOf[NamedType], i"denot=$denot info=${denot.info} tp=$tp ${tp.toString}")
tp.asInstanceOf[NamedType].symbol.sourceSymbol
else if (denot.is(Synthetic)) {
val linked = denot.linkedClass
if (linked.exists && !linked.is(Synthetic))
Expand Down

0 comments on commit c998f47

Please # to comment.