File tree 2 files changed +7
-2
lines changed
compiler/src/dotty/tools/dotc
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,8 @@ object Symbols extends SymUtils {
334
334
this .moduleClass.sourceSymbol // The module val always has a zero-extent position
335
335
else if denot.is(ExportedType ) then
336
336
val tp = denot.info.dropAlias
337
- assert(tp.isInstanceOf [NamedType ], i " denot= $denot info= ${denot.info} tp= $tp ${tp.toString}" )
337
+ assert(tp.isInstanceOf [NamedType ],
338
+ i " denot= $denot info= ${denot.info} tp= $tp ${tp.toString}" )
338
339
tp.asInstanceOf [NamedType ].symbol.sourceSymbol
339
340
else if (denot.is(Synthetic )) {
340
341
val linked = denot.linkedClass
Original file line number Diff line number Diff line change @@ -499,7 +499,11 @@ object Completion:
499
499
completionsFilter(NoType , nameInScope) &&
500
500
! sym.isAbsent() &&
501
501
! sym.isPrimaryConstructor &&
502
- sym.sourceSymbol.exists &&
502
+ {
503
+ try sym.sourceSymbol.exists
504
+ catch case ex : AssertionError =>
505
+ throw new AssertionError (i " denot= $denot" , ex)
506
+ } &&
503
507
(! sym.is(Package ) || sym.is(ModuleClass )) &&
504
508
! sym.isAllOf(Mutable | Accessor ) &&
505
509
! sym.isPackageObject &&
You can’t perform that action at this time.
0 commit comments