mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
resolve for method reference qualifier should prefer classes in case of constructor refs (IDEA-164165)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class TEST_NAME {
|
||||
TEST_NAME(){}
|
||||
}
|
||||
class TEST_NAME1 {}
|
||||
|
||||
class TestClass {
|
||||
static{
|
||||
String TEST_NAME = "";
|
||||
Supplier<TEST_NAME> s = TEST_NAME::new;
|
||||
|
||||
String TEST_NAME1 = "";
|
||||
Supplier<TEST_NAME1> s1 = TEST_NAME1::new;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user