[language server] tooltip showing the wrong type
Closed this issue · 0 comments
trusktr commented
Flow version: 0.250.0
Expected behavior
the tooltip should show = "a" | "b" | "c" | "d"
.
Actual behavior
The tooltip shows = FooBar | LoremIpsum
, although type checking seems to work fine.
Screenshot:
This code correctly has an error, but the tooltip mentions incorrect types in the error:
In this code, the string values are all visible:
So it looks like the string value types are correctly checked, just that sometimes the wrong types are referenced for display.