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
When name's of a discriminated union type and module collide, intellisense in the context of a type definition will show the cases instead of the type name
#1980
Open
MangelMaxime opened this issue
Feb 4, 2024
· 0 comments
Describe the bug
If I have type definition like this one in a file:
Then trying to define the type a variable will show the cases names instead of the
Question
record type.Accessing intellisense from inside of the body of a variable declaration will however show the cases + record name/reference:
CleanShot.2024-02-04.at.21.39.39.mp4
Steps to reproduce
Create an F# file with the following content:
let x : Response.Read.
Try to get intellisense while typing and see that the record name/reference is not here.Expected behaviour
Intellisense in this context should only report the
record
name/reference because cases cannot be used for type definition.Machine info
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: