You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: show inferred type on holes in hover [skip ci] (#21423)
Low hanging fruit after: #21390.
It seems useful to see the inferred "expected" type on holes, so this PR
adds them to be visible on hover.
<img width="692" alt="Screenshot 2024-08-23 at 14 16 17"
src="https://github.com/user-attachments/assets/c89d4d5a-1d48-4419-9d9c-41e27eb332a1">
This won't be perfect, as we can't always infer the expected type as
we'd like to (see: `InferExpectedTypeSuite#flatmap`, so I'm sure we want
to introduce that at all.
Side note: Probably we should write something different than `Expression
type:` in hover here.
cc: @tgodzik
0 commit comments