overload resolution: encapsulate overload guard checks + eliminate additional applicability predicate

GitOrigin-RevId: 41c411466ef8def32fb15535dc639a7f7dc29285
This commit is contained in:
Anna Kozlova
2019-05-03 21:21:57 +02:00
committed by intellij-monorepo-bot
parent c4eb244441
commit e26bb55130
22 changed files with 69 additions and 84 deletions

View File

@@ -6,7 +6,7 @@ interface Func<TIn, TOut>{
class Main {
public static void main(final String[] args) {
<error descr="Incompatible types. Found: '<method reference>', required: 'Func<java.lang.Integer,java.lang.String>'">Func<Integer, String> func = Integer::toString;</error>
Func<Integer, String> func = Integer::<error descr="Cannot resolve method 'toString'">toString</error>;
System.out.println(func.run(6));
}
}