blob: 4094b7fa8debdbf45b334183b42f32ec3bfeae12 [file]
// "Replace with old style 'switch' statement" "true"
import java.util.*;
public class GenerateThrow {
void foo(int i) {
int res = <caret>switch (i) { // convert to 'old style' switch
case 0 -> 1;
default/*1*/ ->/*2*/ throw /*3*/new IllegalArgumentException();
};
}
}