mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
Use the version requierement table of the outer DescriptorSerializer instance when serializing metadata for a class. Pass parent serializer to DescriptorSerializer.create to make sure the correct table is used. Serialize nested classes before the outer class in JS and common code, to make sure requirements are not lost. Also, split VersionRequirementTest to JVM and JS #KT-25120 In Progress
31 lines
570 B
Kotlin
Vendored
31 lines
570 B
Kotlin
Vendored
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
package test
|
|
|
|
import kotlin.internal.RequireKotlin
|
|
|
|
class Outer {
|
|
inner class Inner {
|
|
@RequireKotlin("1.1")
|
|
inner class Deep @RequireKotlin("1.1") constructor() {
|
|
@RequireKotlin("1.1")
|
|
fun f() {}
|
|
|
|
@RequireKotlin("1.1")
|
|
val x = ""
|
|
|
|
suspend fun s() {}
|
|
}
|
|
}
|
|
|
|
class Nested {
|
|
@RequireKotlin("1.1")
|
|
fun g() {}
|
|
}
|
|
|
|
@RequireKotlin("1.1")
|
|
companion object
|
|
}
|
|
|
|
@RequireKotlin("1.1")
|
|
fun topLevel() {}
|