resolve for method reference qualifier should prefer classes in case of constructor refs (IDEA-164165)

This commit is contained in:
Anna.Kozlova
2016-11-18 17:58:54 +01:00
parent 44a8ce13bd
commit ec82847b4e
3 changed files with 28 additions and 1 deletions
@@ -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;
}
}