Searched refs:Sam1 (Results 1 - 3 of 3) sorted by relevance

/openjdk9/langtools/test/tools/javac/lambda/
H A DTargetType23.java16 interface Sam1 { interface in class:TargetType23
30 void call(Sam1 s) { }
39 call(()-> { throw new RuntimeException(); }); // ambiguous - call(Sam1) vs. call(Sam2)
H A DTargetType22.java16 interface Sam1<A> { interface in class:TargetType22
33 void call(Sam1<String> s) { }
40 call(a1 -> { }); //ambiguous - both call(Sam1) and call(SamX) match
H A DTargetType60.java13 interface Sam1<X> { interface in class:TargetType60
44 static <U> U g(Sam1<U> s) { return null; }
47 static <U> U u(Sam1<U> s) { return null; }
52 String s2 = g(this::m1); //ok - resolves to g(Sam1)
54 String s4 = g(this::m01);//ambiguous (g(Sam0), g(Sam1) apply)
55 String s5 = g(this::m012);//ambiguous (g(Sam0), g(Sam1), g(Sam2) apply)
59 TargetType60 s1 = u(TargetType60::n0); //ok - resolves to u(Sam1)
62 TargetType60 s4 = u(TargetType60::n01);//ambiguous (u(Sam1), u(Sam2) apply)
63 TargetType60 s5 = u(TargetType60::n012);//ambiguous (u(Sam1), u(Sam2) apply)

Completed in 96 milliseconds