kotlin-spec
kotlin-spec copied to clipboard
Grammar: empty body after delegate parsed as lambda expression
object : Base, Base2 by Delegate() { }
the {} in the end is parsed as a lambda expression, but
- trailing lambdas are forbidden for delegation expressions
- it is, in fact, a class body