Join Slack
Is this supposed to be valid Kotlin? The compiler can't parse having braces back-to-back like that.
# getting-started
r
Ryan Benasutti
12/18/2018, 3:07 AM
Is this supposed to be valid Kotlin? The compiler can't parse having braces back-to-back like that.
-.kt
k
karelpeeters
12/18/2018, 10:03 AM
Well it's kind of ambiguous, is
run
supposed to be a property and then the class body or is it a lambda parameter? To work around this you can put the lambda in
()
.
r
Ryan Benasutti
12/18/2018, 3:54 PM
I agree it is ambiguous. My question is about whether or not this
should
be valid Kotlin.
k
karelpeeters
12/18/2018, 3:55 PM
I remember there being a YouTrack issue about this, but I can't seem to find it. Maybe it was just a conversation in slack?
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by