new inference: exclude return constraints/non pertinent to applicability argument constraints from overload resolution process

This commit is contained in:
Anna Kozlova
2014-02-11 09:40:00 +01:00
parent b9ef7b60c7
commit 4889751ded
5 changed files with 38 additions and 24 deletions
@@ -25,7 +25,7 @@ class ReturnTypeIncompatibility {
}
public static void main(String[] args) {
call<error descr="Ambiguous method call: both 'ReturnTypeIncompatibility.call(I1<Integer>)' and 'ReturnTypeIncompatibility.call(I3<Object>)' match">(i-> {return i;})</error>;
call<error descr="Ambiguous method call: both 'ReturnTypeIncompatibility.call(I1<Integer>)' and 'ReturnTypeIncompatibility.call(I2<Integer>)' match">(i-> {return i;})</error>;
}
}