mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
overload resolution: ignore explicit type arguments when choosing most specific method for java 8+
This commit is contained in:
+10
-1
@@ -10,4 +10,13 @@ class Test<T> {
|
||||
new Test<>("");
|
||||
new Test<String><error descr="Cannot resolve constructor 'Test(java.lang.String)'">("")</error>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Test1 {
|
||||
static <X> void m(X arg) {}
|
||||
static void m(String arg) {}
|
||||
|
||||
{
|
||||
Test1.<String>m(" ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user