new inference: method refs overload resolution: filter static problems for ReferenceType refs only

This commit is contained in:
Anna Kozlova
2014-02-10 21:33:41 +01:00
parent 49a2d0ad54
commit fd00ca6f91
7 changed files with 21 additions and 26 deletions

View File

@@ -55,7 +55,7 @@ class MyTest {
{
I1 i_1 = <error descr="Non-static method cannot be referenced from a static context">MyTest::_1</error>;
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest.I1'">I1 i_1 = MyTest::_1;</error>
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest.I1'">I1 i_2 = MyTest::_2;</error>
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest.I1'">I1 i_3 = MyTest::_3;</error>
<error descr="Incompatible types. Found: '<method reference>', required: 'MyTest.I1'">I1 i_4 = MyTest::_4;</error>