how to evolve enum to add experimental cases? #17815
bishabosha
started this conversation in
Feature Requests
Replies: 0 comments 1 reply
-
If we really care about this (I personally do not see a strong usecase), this should be a feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiler version
3.1.0
Minimized code
Output
Expectation
The error makes sense, as
values
,valueOf
,fromOrdinal
etc referenceA
, but it does mean we can not "evolve" our enum to add new cases without making every method experimental.Or perhaps those methods should all automatically become experimental as soon as an experimental case is added? (not good for downstream users of a library)
Beta Was this translation helpful? Give feedback.
All reactions