ensure ambiguity error presentation doesn't depend on previous calls to getSubstitutor()

This commit is contained in:
Anna.Kozlova
2016-10-21 18:07:07 +02:00
parent 2a4d33f234
commit 3797d3ea1c
9 changed files with 16 additions and 16 deletions
@@ -3,7 +3,7 @@ import java.util.function.Supplier;
class Test {
public static void main(String... args) {
<error descr="Ambiguous method call: both 'Test.c(Supplier<Integer>, Supplier<Integer>)' and 'Test.c(Supplier<T>, T)' match">c</error>(() -> 3, () -> 10);
<error descr="Ambiguous method call: both 'Test.c(Supplier<Integer>, Supplier<Integer>)' and 'Test.c(Supplier<Integer>, Integer)' match">c</error>(() -> 3, () -> 10);
}
public static <T> void c(Supplier<T> s1, Supplier<T> s2) {}