inference: ensure to distinguish new fresh variables of the same node

This commit is contained in:
Anna.Kozlova
2017-12-21 18:07:59 +01:00
parent 2fcb8a6803
commit 20ea015d3e
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
import java.util.Comparator;
class MyTest<T> {
{
create<error descr="'create(java.util.Comparator<T>)' in 'MyTest' cannot be applied to '(java.util.Comparator<T>)'">(Comparator.naturalOrder())</error>;
}
static <T> void create(Comparator<T> c) {}
}