Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltip for enums show [<Struct>] type instead of enum #16923

Open
smoothdeveloper opened this issue Mar 21, 2024 · 1 comment
Open

tooltip for enums show [<Struct>] type instead of enum #16923

smoothdeveloper opened this issue Mar 21, 2024 · 1 comment
Milestone

Comments

@smoothdeveloper
Copy link
Contributor

I noticed minor issue with tooltips, that affects both VS & Rider:

type Foo = 
| F = 1
| G = 2

Visual Studio (Version 17.10.0 Preview 1.0):
image
Rider (2024.1 EAP 8):
image
VS Code+Ionide (v7.18.2):
image

I believe it should show the same as in Ionide, or at least, not show struct.

@vzarytovskii
Copy link
Member

Well, to be fair, enum is struct:

public abstract partial class Enum : ValueType ...

And since in F# we don't have a special keyword or shape for enums (apart from its declaration), it's not entirely incorrect to show it as struct type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

3 participants