< prev index next >
test/langtools/tools/javac/switchexpr/SwitchExpressionScopesIsolated.java
Print this page
*** 1,10 ****
/*
* @test /nodynamiccopyright/
* @bug 8206986
* @summary Verify that scopes in rule cases are isolated.
! * @compile/fail/ref=SwitchExpressionScopesIsolated.out -XDrawDiagnostics --enable-preview -source 12 SwitchExpressionScopesIsolated.java
*/
public class SwitchExpressionScopesIsolated {
private String scopesIsolated(int i) {
--- 1,10 ----
/*
* @test /nodynamiccopyright/
* @bug 8206986
* @summary Verify that scopes in rule cases are isolated.
! * @compile/fail/ref=SwitchExpressionScopesIsolated.out -XDrawDiagnostics --enable-preview -source 13 SwitchExpressionScopesIsolated.java
*/
public class SwitchExpressionScopesIsolated {
private String scopesIsolated(int i) {
< prev index next >