Files
kotlin/compiler/testData/versionRequirement/nestedClassMembers.kt
Ilya Gorbunov 3bd3d61469 Test experimental coroutines version requirement on JVM only
Modify 'suspendFun' and 'nestedClassMembers' tests so that pre-release
suspend functions are tested only on JVM, where they are still supported.
2020-01-29 09:12:42 +03:00

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.3")
inner class Deep @RequireKotlin("1.3") constructor() {
@RequireKotlin("1.3")
fun f() {}
@RequireKotlin("1.3")
val x = ""
suspend fun s() {}
}
}
class Nested {
@RequireKotlin("1.3")
fun g() {}
}
@RequireKotlin("1.3")
companion object
}
@RequireKotlin("1.3")
fun topLevel() {}