aoqi@0: /* aoqi@0: * @test /nodynamiccopyright/ aoqi@0: * @bug 6962494 aoqi@0: * @summary The order of elements of intersection types shouldn't matter aoqi@0: * @compile/fail/ref=OrderedIntersections.out -XDrawDiagnostics OrderedIntersections.java aoqi@0: */ aoqi@0: aoqi@0: interface i1 {} aoqi@0: interface i2 {} aoqi@0: aoqi@0: public class OrderedIntersections { aoqi@0: static Object smf(t1 x) { aoqi@0: System.out.println( " smf1 " ); aoqi@0: return null; aoqi@0: } aoqi@0: aoqi@0: static Object smf(t2 x) { aoqi@0: System.out.println( " smf2 " ); aoqi@0: return null; aoqi@0: } aoqi@0: }