File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1001,13 +1001,14 @@ object SymDenotations {
1001
1001
final def companionModule (implicit ctx : Context ): Symbol =
1002
1002
if (is(Module )) sourceModule
1003
1003
else if (isOpaqueAlias) {
1004
- def reference (tp : Type ): TermRef = tp match {
1005
- case TypeRef (prefix : TermRef , _) => prefix
1004
+ def reference (tp : Type ): Symbol = tp match {
1005
+ case TypeRef (prefix : TermRef , _) => prefix.termSymbol
1006
1006
case tp : HKTypeLambda => reference(tp.resType)
1007
1007
case tp : AppliedType => reference(tp.tycon)
1008
+ case tp : ErrorType => registeredCompanion.sourceModule
1008
1009
}
1009
1010
val TypeAlias (alias) = info
1010
- reference(alias).termSymbol
1011
+ reference(alias)
1011
1012
}
1012
1013
else registeredCompanion.sourceModule
1013
1014
You can’t perform that action at this time.
0 commit comments