9c03dcd230
Previous attempt was at6807ed6642, but it was reverted in7771e5914d(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.
29 lines
538 B
Kotlin
Vendored
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() {}
|