Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/RecursivelyAnnotatedFunctionParameter.kt
T

3 lines
161 B
Kotlin
Vendored

// 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