Shawn
12/30/2018, 8:17 PMUnit
-returning function call, let’s call it foo
. Let’s say a) you don’t need ::
to get a method reference and b) you forget to actually invoke the function and the lambda looks kinda like this { foo }
- now the lambda returns () -> Unit
and the compiler doesn’t see anything wrong with that