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,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_TEXT
// WITH_RUNTIME
// WITH_STDLIB
inline fun foo(mkString: () -> String): String =
mkString()
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// WITH_RUNTIME
// WITH_STDLIB
inline fun foo(mkString: (Char, Char) -> String): String =
mkString('O','K')
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
inline fun foo(x: (Int, Int) -> Int): Int =
x(120,3)
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// TARGET_BACKEND: JVM
object Test {
@JvmStatic
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// NO_OPTIMIZED_CALLABLE_REFERENCES
class A {
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.reflect.KCallable
@@ -1,6 +1,6 @@
// !LANGUAGE: +SuspendConversion
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.reflect.KCallable
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.reflect.KCallable
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
import kotlin.coroutines.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
import kotlin.coroutines.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
import kotlin.coroutines.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// !LANGUAGE: +SuspendConversion
// WITH_RUNTIME
// WITH_STDLIB
// WITH_COROUTINES
import helpers.*
@@ -1,5 +1,5 @@
// WITH_COROUTINES
// WITH_RUNTIME
// WITH_STDLIB
import helpers.*
import kotlin.coroutines.*
import kotlin.coroutines.intrinsics.*
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
package test
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// FULL_JDK
// WITH_RUNTIME
// WITH_STDLIB
fun MutableSet<CharSequence>.foo(s: CharSequence): Set<CharSequence> {
s.also(::add)
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun g(b: (Int, (Int) -> String) -> Array<String>): Array<String> =
b(1) { "O" }
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun foo(it: Int) = "O"[it]
val Int.foo: Char
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
class C(val x: String) {
fun foo(i: Int): Char = x[i]
@@ -1,6 +1,6 @@
// !LANGUAGE: +JvmFieldInInterface
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
class Bar(val value: String)
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
class Foo
@@ -1,5 +1,5 @@
//WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val a = intArrayOf(1, 2)
val b = arrayOf("OK")
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
fun foo(): Unit {}
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: A.java
public class A {
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
val f = Any?::toString
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: main.kt
import kotlin.reflect.KFunction2
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: Sample.java
public class Sample {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: main.kt
import kotlin.reflect.KFunction1
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: Sample.java
public class Sample {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: main.kt
import kotlin.reflect.KFunction2
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: Sample.java
public class Sample {
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: Sample.java
public class Sample {
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
class C {
fun f() {}
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.reflect.KClass
@@ -4,7 +4,7 @@
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
// WITH_STDLIB
// WITH_REFLECT
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// WITH_REFLECT
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// WITH_REFLECT
import kotlin.test.assertEquals
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
class Wrapper<T>(val value: T)
@@ -6,7 +6,7 @@
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_LIGHT_ANALYSIS
// WITH_RUNTIME
// WITH_STDLIB
import kotlin.test.assertEquals
import kotlin.jvm.internal.FunctionBase
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
class Container {
var id: Int? = null
}
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// ISSUE: KT-32462
fun decodeValue(value: String): Any {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IGNORE_BACKEND: JS
class A {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// SKIP_DCE_DRIVEN
fun sort(list: MutableList<String>, comparator: (String, String) -> Int) {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun createArray(ctor: (Int, (Int) -> Char) -> CharArray) =
ctor(1) { 'O' }
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: JClass.java
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// IGNORE_BACKEND: JVM
// IGNORE_LIGHT_ANALYSIS
@@ -1,5 +1,5 @@
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
val <T> T.foo get() = 42
@@ -1,6 +1,6 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
class A<T>(val b: T)
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun <K, V> f(vararg p: Pair<K, V>): K = p[0].first
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
class A {
fun memberFunction() {}
@@ -1,6 +1,6 @@
// !API_VERSION: 1.3
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
class A {
fun memberFunction() {}
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: b.kt
import a.A
@@ -1,6 +1,6 @@
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: STDLIB_LAZY
//WITH_RUNTIME
// WITH_STDLIB
fun box(): String {
var methodVar = "OK"
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
fun box(): String =
if (listOf("abc", "de", "f").map(String::length) == listOf(3, 2, 1)) "OK" else "Fail"
@@ -1,5 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
import java.io.*
import kotlin.test.*