Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedFunctionParameter.kt
T
2020-09-16 16:53:31 +03:00

4 lines
178 B
Kotlin
Vendored

// FIR_IDENTICAL
// Function parameter CAN be recursively annotated
annotation class ann(val x: Int)
fun foo(@ann(<!ANNOTATION_ARGUMENT_MUST_BE_CONST!>foo(1)<!>) x: Int): Int = x