equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8206986 |
3 * @bug 8206986 |
4 * @summary Verify that scopes in rule cases are isolated. |
4 * @summary Verify that scopes in rule cases are isolated. |
5 * @compile/fail/ref=SwitchExpressionScopesIsolated.out -XDrawDiagnostics --enable-preview -source ${jdk.version} SwitchExpressionScopesIsolated.java |
5 * @compile/fail/ref=SwitchExpressionScopesIsolated.out -XDrawDiagnostics SwitchExpressionScopesIsolated.java |
6 */ |
6 */ |
7 |
7 |
8 public class SwitchExpressionScopesIsolated { |
8 public class SwitchExpressionScopesIsolated { |
9 |
9 |
10 private String scopesIsolated(int i) { |
10 private String scopesIsolated(int i) { |