blob: 650296507d28be1715b56907143360c20b6376af [file] [log] [blame]
// "Replace lambda with method reference" "true"
import java.util.function.Function;
class Box<T>
{
public Box(T value)
{
this._value = value;
}
private final T _value;
public T getValue()
{
return this._value;
}
{
foo(Box<String>::getValue);
}
<K> void foo(Function<Box<K>, K> f){}
}