Files
kotlin-fork/compiler/testData/diagnostics/tests/properties/constAnnotationCycle.kt
T
Kirill Rakhman 7f9118d0f2 [FIR] Resolve property return type before resolving its annotations
This fixes TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM in a declaration
like `@Ann(myConst) const val myConst = ""`.

#KT-58080 Fixed
2023-05-08 07:45:57 +00:00

6 lines
101 B
Kotlin
Vendored

// FIR_IDENTICAL
annotation class Anno(val value: String)
@Anno(constant)
const val constant = "OK"