Ensure types don't match

This commit is contained in:
Juan Martín Sotuyo Dodero 2024-11-15 17:54:35 -03:00
parent 1ceae38880
commit b6f45ed618

View File

@ -2306,7 +2306,7 @@ import java.util.Set;
public class Foo { public class Foo {
private void foo(AnotherUnresolvedType baz) {} private void foo(AnotherUnresolvedType baz) {}
private void foo(UnresolvedType baz) {} private void foo(UnresolvedType baz) {}
public void bar(Set<UnresolvedType> s) { public void bar(Set<SomeOtherUnresolvedType> s) {
s.forEach(this::foo); // Not being able to resolve UnresolvedType and AnotherUnresolvedType means we can't tell which foo is being used here… s.forEach(this::foo); // Not being able to resolve UnresolvedType and AnotherUnresolvedType means we can't tell which foo is being used here…
} }
} }