Files
kotlin-fork/compiler/testData/codegen/box/fir/deserializedOptInDeprecated.kt
T
Kirill Rakhman c867a4b52f [FIR] Don't expand typealiases when checking for DeprecatedSinceKotlin
During serialization, this can lead to a cycle resulting in a Stack
Overflow.

#KT-58356 Fixed
2023-06-21 14:35:43 +00:00

22 lines
273 B
Kotlin
Vendored

// MODULE: sub
// FILE: sub.kt
package foo
class Base {
@RequiresOptIn
annotation class My
@My
@Deprecated("Yes")
fun test() = "OK"
}
// MODULE: dep(sub)
// FILE: box.kt
package some
import foo.Base
@OptIn(Base.My::class)
fun box() = Base().test()