Is this supposed to be valid Kotlin? The compiler ...
# getting-started
r
Is this supposed to be valid Kotlin? The compiler can't parse having braces back-to-back like that.
k
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
I agree it is ambiguous. My question is about whether or not this should be valid Kotlin.
k
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?