Skip to content

Commit 36d214e

Browse files
committed
dealias type in selectable
1 parent 9c8b63d commit 36d214e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: presentation-compiler/src/main/dotty/tools/pc/HoverProvider.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ object HoverProvider:
186186
case RefinedType(_, refName, tpe) if (name == refName.toString() || refName.toString() == nme.Fields.toString()) =>
187187
val resultType =
188188
rest match
189-
case Select(_, asInstanceOf) :: TypeApply(_, List(tpe)) :: _ if asInstanceOf == nme.asInstanceOfPM => tpe.tpe
189+
case Select(_, asInstanceOf) :: TypeApply(_, List(tpe)) :: _ if asInstanceOf == nme.asInstanceOfPM =>
190+
tpe.tpe.widenTermRefExpr.deepDealias
190191
case _ if n == nme.selectDynamic => tpe.resultType
191192
case _ => tpe
192193

0 commit comments

Comments
 (0)