Open Arithmomaniac opened 3 weeks ago
A variation of this problem is that if you assign such an object as the return type of an opExample
, not only does the mouseover say (error)
, you get the following error on the returnType
assignment:
ErrorType refers to a type, but is being used as a value here. TypeSpec(expect-value)
Reproduction: Playground
Describe the bug
If the declared type and the assigned type of a const are misaligned, then when the const is used elsewhere, the type hint says "(error)" instead of showing the declared type:
I would expect to see "const foobad1: { Bar : string }".
Reproduction
Drop this into VSCode and mouse over
foobad1
:Checklist