1 /*
   2  * @test /nodynamiccopyright/
   3    @bug 8187420
   4  * @summary Error message mentions relevant types transposed
   5  * @compile/fail/ref=EnsureTypesOrderTest.out -XDrawDiagnostics 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 }