method refs: take into account super class substitutor

This commit is contained in:
anna
2013-02-12 11:57:23 +01:00
parent f6b6b2c59c
commit c4eaec6655
4 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
class Double {
public static Double sum(Double a, Double b) {
return null;
}
}
interface BinaryOperator<T> extends BiFunction<T,T,T> {
}
interface BiFunction<T, U, R> {
R apply(T t, U u);
}
class U {
{
BinaryOperator<Double> doubleBinaryOperator = Double::sum;
}
}