mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
overload resolution: encapsulate overload guard checks + eliminate additional applicability predicate
GitOrigin-RevId: 41c411466ef8def32fb15535dc639a7f7dc29285
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c4eb244441
commit
e26bb55130
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user