changeset 59285 | 7799a51dbe30 |
59284:88502b1cf76f | 59285:7799a51dbe30 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8187420 8231827 |
|
4 * @summary Error message mentions relevant types transposed |
|
5 * @compile/fail/ref=EnsureTypesOrderTest.out -XDrawDiagnostics --enable-preview -source ${jdk.version} EnsureTypesOrderTest.java |
|
6 */ |
|
7 public class EnsureTypesOrderTest { |
|
8 public static void main(String [] args) { |
|
9 if (args instanceof String s) { |
|
10 System.out.println("Broken"); |
|
11 } |
|
12 } |
|
13 } |