-
Notifications
You must be signed in to change notification settings - Fork 1.1k
make values and valueOf only available on enumerations #10002
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
make values and valueOf only available on enumerations #10002
Conversation
805ec33
to
8125006
Compare
in this state, the signatures exist but will always fail at compile time if called - so semanticdb and tasty will be generated |
9ffbd1c
to
ca14396
Compare
rebased, i guess one issue/benefit of this thing is now someone can't define their own |
this makes it more complex because now you have to choose whether to intercept the "did you mean value" (rather than |
error in community build:
|
@sjrd updated it to special case the missing member addendum, so no longer generates symbols |
cdb6a80
to
58e084e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I love it.
not sure whats happening, seems like the other ci jobs are hanging |
these methods will only be available when an enum defines purely value cases