Files
kotlin-fork/compiler/testData/versionRequirement/nestedClassMembers.kt
T
Alexander Udalov 9c03dcd230 Do not write version requirements for suspend functions
Previous attempt was at 6807ed6642, but it was reverted in 7771e5914d
(see that commit for the explanation). Now it should be fine to remove
these version requirements.

No issue reported because it's mostly not a user-visible change. The
main effect is that it reduces differences in metadata between K1 and
K2, namely it fixes the ValueClass.kt kotlinp test.
2023-07-31 13:05:29 +00:00

29 lines
538 B
Kotlin
Vendored

@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package test
import kotlin.internal.RequireKotlin
class Outer {
inner class Inner {
@RequireKotlin("1.3")
inner class Deep @RequireKotlin("1.3") constructor() {
@RequireKotlin("1.3")
fun f() {}
@RequireKotlin("1.3")
val x = ""
}
}
class Nested {
@RequireKotlin("1.3")
fun g() {}
}
@RequireKotlin("1.3")
companion object
}
@RequireKotlin("1.3")
fun topLevel() {}