f79b282c60
#KT-32702 fixed #KT-19327 fixed
14 lines
291 B
Java
Vendored
14 lines
291 B
Java
Vendored
class Test {
|
|
<A, B> B foo(A value, FunctionalI<A, B> fun) {
|
|
return fun.apply(value);
|
|
}
|
|
|
|
Double toDouble(Integer x) {
|
|
return x.doubleValue();
|
|
}
|
|
|
|
public double nya() {
|
|
//TODO explicitlly call apply here
|
|
return foo(1, this::toDouble);
|
|
}
|
|
} |