method references: error on wrong number of type arguments on static call (IDEA-205657)

This commit is contained in:
Anna.Kozlova
2019-01-18 20:17:34 +01:00
parent 489e6f374e
commit 6d77556d61
2 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ class Test<T> {
BlahBlah<String> blahBlah1 = test::<String>foo1;
BlahBlah<String> blahBlah2 = <error descr="Static method referenced through non-static qualifier">test::<String>foo2</error>;
BlahBlah<String> blahBlah3 = <error descr="Static method referenced through non-static qualifier">test::<String>foo3</error>;
BlahBlah<String> blahBlah4 = Test::<error descr="Wrong number of type arguments: 2; required: 1"><String, String></error>foo3;
BlahBlah<String> blahBlah5 = test::<String, String>foo1;
}
}