Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/kt1860-positive.fir.kt
T
2023-05-05 09:34:24 +00:00

15 lines
367 B
Kotlin
Vendored

// COMPARE_WITH_LIGHT_TREE
@Target(AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION)
@Retention(AnnotationRetention.SOURCE)
annotation class test
fun foo(@test f : Int) {}
var bar : Int = 1
set(@test v) {}
val x : (Int) -> Int = {@test x <!SYNTAX!>: Int -> x<!>} // todo fix parser annotation on lambda parameter
class Hello(@test args: Any) {
}