new inference: method ref inference: postpone return type inference in case of constructor refs

This commit is contained in:
Anna Kozlova
2014-02-07 18:12:06 +01:00
parent 5fb1dbb2ce
commit 6efef684ce
3 changed files with 28 additions and 24 deletions

View File

@@ -39,6 +39,6 @@ class MyTest1 {
static void foo(I3 i) {}
static {
foo<error descr="Cannot resolve method 'foo(<method reference>)'">(Foo::new)</error>;
foo<error descr="Ambiguous method call: both 'MyTest1.foo(I1)' and 'MyTest1.foo(I2)' match">(Foo::new)</error>;
}
}