Skip to content

Commit

Permalink
Handle eta-expanded type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dwijnand committed Jan 20, 2024
1 parent 03c9b3e commit 4e532e9
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
denot.info.dropAlias.finalResultType.typeConstructor match
case tp: NamedType => tp.symbol.sourceSymbol
case _ => this
else if (denot.is(Synthetic)) {
val linked = denot.linkedClass
if (linked.exists && !linked.is(Synthetic))
Expand Down

0 comments on commit 4e532e9

Please sign in to comment.