java.lang.ClassCastException on a trivial match #15662
Labels
area:pattern-matching
itype:bug
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
Milestone
Compiler version
3.2.0-RC1
On 3.1.3 it is a compiler error instead (it should not be)
Minimized code
Output
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.lang.Integer
Expectation
Print "OTHER"
The text was updated successfully, but these errors were encountered: