Skip to content

Commit c998f47

Browse files
committed
assert it
1 parent 03c9b3e commit c998f47

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,9 @@ object Symbols extends SymUtils {
333333
else if (denot.is(ModuleVal))
334334
this.moduleClass.sourceSymbol // The module val always has a zero-extent position
335335
else if denot.is(ExportedType) then
336-
denot.info.dropAlias.asInstanceOf[NamedType].symbol.sourceSymbol
336+
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
337339
else if (denot.is(Synthetic)) {
338340
val linked = denot.linkedClass
339341
if (linked.exists && !linked.is(Synthetic))

0 commit comments

Comments
 (0)