https://kotlinlang.org logo
#feed
Title
# feed
p

pivovarit

12/05/2017, 6:49 AM
http://4comprehension.com/kotlin-type-inference-puzzler/ - took me way more than necessary to figure out this one in a real project 🙂
👍 2
a

arthur

12/05/2017, 9:08 AM
I've also made that mistake before. It does make sense, but that
=
is very powerful.
p

pivovarit

12/05/2017, 1:24 PM
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

stantronic

12/06/2017, 2:27 PM
I’ve also fallen into this trap. Could there be an intelliJ warning for things like that?