Are warnings ok when matching on generic types? #21995
Unanswered
goshacodes
asked this question in
General Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiler version
3.3.4
"-source:future-migration"
Hi. Compiler generates a warning on this code and I know why, but I'm not sure this is ok.
When you match on any - just cast to Matchable, but in this case it creates a mess with nested matches
Minimized code
Output
Compiles with warning:
This works, but it makes your code a mess
Expectation
compiles without warning
Beta Was this translation helpful? Give feedback.
All reactions