ClassCastException when using named pattern with Name-based Match #22900
Labels
area:named-tuples
Issues tied to the named tuples feature.
area:pattern-matching
itype:bug
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
Compiler version
3.7.1-RC1-bin-20250328-d519790-NIGHTLY
Minimized code
Output
Note that it also prints the warning:
But I think this is just #22899
Expectation
Prints
6
The text was updated successfully, but these errors were encountered: