<http://4comprehension.com/kotlin-type-inference-p...
# feed
p
http://4comprehension.com/kotlin-type-inference-puzzler/ - took me way more than necessary to figure out this one in a real project 🙂
👍 2
a
I've also made that mistake before. It does make sense, but that
=
is very powerful.
p
Actually, I feel that the problem is more because of
{ ... }
that can be used for declaring lambda expressions as well as standard code blocks
There would be no problems if we couldn’t omit the
() ->
part 🙂
s
I’ve also fallen into this trap. Could there be an intelliJ warning for things like that?