I was curious why a lambda with a return type can not be casted to a Runnable
whereas a non void method reference can.
Runnable r1 = () -> 1; // not allowed
// error: incompatible types: bad return type in lambda expression
// int cannot be converted to void
Runnable r2 = ((Supplier)() -> 1)::get; // allowed
->
must be a statement"? I'm looking for it. – Ursas