c867a4b52f
During serialization, this can lead to a cycle resulting in a Stack Overflow. #KT-58356 Fixed
22 lines
273 B
Kotlin
Vendored
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()
|