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.
This commit is contained in:
Ilya Gorbunov
2020-01-24 20:07:29 +03:00
parent 7792613f88
commit 3bd3d61469
4 changed files with 43 additions and 24 deletions
+7 -7
View File
@@ -5,12 +5,12 @@ import kotlin.internal.RequireKotlin
class Outer {
inner class Inner {
@RequireKotlin("1.1")
inner class Deep @RequireKotlin("1.1") constructor() {
@RequireKotlin("1.1")
@RequireKotlin("1.3")
inner class Deep @RequireKotlin("1.3") constructor() {
@RequireKotlin("1.3")
fun f() {}
@RequireKotlin("1.1")
@RequireKotlin("1.3")
val x = ""
suspend fun s() {}
@@ -18,13 +18,13 @@ class Outer {
}
class Nested {
@RequireKotlin("1.1")
@RequireKotlin("1.3")
fun g() {}
}
@RequireKotlin("1.1")
@RequireKotlin("1.3")
companion object
}
@RequireKotlin("1.1")
@RequireKotlin("1.3")
fun topLevel() {}