mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
Modify 'suspendFun' and 'nestedClassMembers' tests so that pre-release suspend functions are tested only on JVM, where they are still supported.
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.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() {}
|