Skip to content

Commit 548d630

Browse files
committed
Fix TypeSymbol for This references in backend
1 parent 1eba05e commit 548d630

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/backend/jvm/DottyBackendInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{
544544
def members: List[Symbol] =
545545
tp.memberDenots(takeAllFilter, (name, buf) => buf ++= member(name).alternatives).map(_.symbol).toList
546546

547-
def typeSymbol: Symbol = tp.typeSymbol
547+
def typeSymbol: Symbol = tp.widenDealias.typeSymbol
548548

549549
def =:=(other: Type): Boolean = tp =:= other
550550

0 commit comments

Comments
 (0)