Replace all occurrences of WITH_RUNTIME with WITH_STDLIB

We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
This commit is contained in:
Ivan Kylchik
2021-11-15 17:30:42 +03:00
committed by TeamCityServer
parent 960ba3ffde
commit c7435ba760
4318 changed files with 4328 additions and 4326 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
import kotlin.reflect.KProperty
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
package test
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// Basically this test checks that no captured type used as argument for signature mapping
package test
@@ -6,7 +6,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun <reified T> foo(x: Any?) = Pair(x is T, x is T?)
@@ -6,7 +6,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun <reified T> foo(x: Any?) = Pair(x is T, x is T?)
inline fun <reified F> bar(y: Any?) = foo<Array<F>>(y)
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
inline fun <reified T : Any> jClass() = T::class.java
inline fun <reified T : Any> jClassArray() = jClass<Array<T>>()
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
inline fun <reified T> jaggedArrayOfNulls(): Array<Array<T>?> = arrayOfNulls<Array<T>>(1)
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
inline fun <reified T> baz(value: T): String = "OK" + value
+1 -1
View File
@@ -1,5 +1,5 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
+1 -1
View File
@@ -3,7 +3,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
package test
import kotlin.test.assertEquals
+1 -1
View File
@@ -3,7 +3,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun<reified T> isinstance(x: Any?): Boolean {
return x is T
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
+1 -1
View File
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
package test
+1 -1
View File
@@ -3,7 +3,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun<reified T> createArray(n: Int, crossinline block: () -> T): Array<T> {
return Array<T>(n) { block() }
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
package test
import kotlin.test.assertEquals
+1 -1
View File
@@ -3,7 +3,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun<reified T> createArray(n: Int, crossinline block: () -> T): Array<T> {
return Array<T>(n) { block() }
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// See KT-37163
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// See KT-37163
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// See KT-37163
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// See KT-37128
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -3,7 +3,7 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun<reified T1, reified T2> createArray(n: Int, crossinline block: () -> Pair<T1, T2>): Pair<Array<T1>, Array<T2>> {
return Pair(Array(n) { block().first }, Array(n) { block().second })
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals