Files
kotlin-fork/compiler/testData/psi/annotation/at/annotationValueArgumentsAmbiguity.kt
T

8 lines
253 B
Kotlin
Vendored

fun foo() {
@ann ({ it -> it + 1}) // lambda parsed as argument of annotation, and annotated expression is "print(1)"
print(1)
@ann() ({ it -> it + 1}) // lambda in parenthesises annotated, "print(1)" is separated expression
print(1)
}