Skip to content

Commit bebc331

Browse files
dwijnandWojciechMazur
authored andcommitted
Fix HoverProvider
[Cherry-picked af81e64]
1 parent af50551 commit bebc331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ object HoverProvider:
181181
findRefinement(parent)
182182
case _ => None
183183

184-
val refTpe = sel.tpe.metalsDealias match
184+
val refTpe = sel.tpe.widen.metalsDealias match
185185
case r: RefinedType => Some(r)
186186
case t: (TermRef | TypeProxy) => Some(t.termSymbol.info.metalsDealias)
187187
case _ => None

0 commit comments

Comments
 (0)