Extended Relational Patterns in Switch statement's cases: Allowing Local Variables and Fields #9492
-
Current relational patterns in switch statement cases (e.g.
If we need to use variables , the current syntax requires type patterns with
This is needlessly verbose. Matching on the type
|
Beta Was this translation helpful? Give feedback.
Answered by
huoyaoyuan
Jul 7, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CyrusNajmabadi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#6947 #7736