Unsound reduction of match type where the scrutinee's prefix is a param ref #20518
Labels
area:match-types
itype:bug
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
Compiler version
3.5.1-RC1-bin-20240602-c6fbe6f-NIGHTLY
Minimized code
This is a variation of @EugeneFlesselle's #19746:
The fix for #19746 in 0a3497b should be generalized to check
is(Param)
in prefixes too (and maybe that should also apply to TypeRef and not just TermRef).The text was updated successfully, but these errors were encountered: