new inference: method references: process varargs

This commit is contained in:
Anna Kozlova
2014-02-11 09:40:02 +01:00
parent cb5a0b729b
commit 2b5764d82a
7 changed files with 173 additions and 60 deletions
@@ -54,6 +54,6 @@ class Test {
Test s2 = staticCall<error descr="Ambiguous method call: both 'Test.staticCall(I1<String & Test>)' and 'Test.staticCall(I2<Test,String>)' match">(Test::n1)</error>;
Test s3 = staticCall(<error descr="Non-static method cannot be referenced from a static context">Test::n2</error>);
Test s4 = staticCall<error descr="Ambiguous method call: both 'Test.staticCall(I1<Test>)' and 'Test.staticCall(I2<Test,String>)' match">(Test::n01)</error>;
Test s5 = staticCall<error descr="Cannot resolve method 'staticCall(<method reference>)'">(Test::n012)</error>;
Test s5 = staticCall<error descr="Ambiguous method call: both 'Test.staticCall(I1<Test>)' and 'Test.staticCall(I2<Test,String>)' match">(Test::n012)</error>;
}
}