I could also see it leading to particularly annoyi...
# getting-started
s
I could also see it leading to particularly annoying class of error with type inference - say you’re writing a lambda and the last line has a
Unit
-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
🤔 1