Unsound elimination of function calls in paths #21795
Labels
itype:bug
itype:soundness
Soundness bug (it lets us compile code that crashes at runtime with a ClassCastException)
Compiler version
3.6.1-RC1
Minimized code
Note the dummy parameter
X
is necessary fora
to be a def.Expectation
Function calls used in paths should be evaluated, along with their arguments, even if they have singleton return types. We get the usual bad bounds problem otherwise.
The text was updated successfully, but these errors were encountered: