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:
committed by
TeamCityServer
parent
960ba3ffde
commit
c7435ba760
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
class C(val x: String)
|
||||
|
||||
val x = "O"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
var x: String
|
||||
get() = throw Exception("x's getter shouldn't be called")
|
||||
set(_) { throw Exception("x's setter shouldn't be called") }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JS
|
||||
class C(var x: String)
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
var result = "Fail"
|
||||
|
||||
object O {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
class C(val x: String)
|
||||
|
||||
class D(c: C) {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// v-- fir2ir produces an IrFunctionReference of type KProperty0 instead of an IrPropertyReference
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_REFLECT
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// FILE: J.java
|
||||
public interface J<T> {
|
||||
public T getValue();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
val String.foo: String
|
||||
get() = this
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// See KT-10107: 'Variable must be initialized' for delegate with private set
|
||||
|
||||
class My {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// KT-40412
|
||||
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// No kotlin-reflect.jar in this test
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
// MODULE: jjj
|
||||
// FILE: J.java
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
val log = StringBuilder()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
interface T {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
fun box(): String {
|
||||
val x by lazy { "OK" }
|
||||
return x
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
import kotlin.properties.Delegates.notNull
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
val topLevelLazyVal by lazy { 1 }
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
open class A {
|
||||
private val _myVal by lazy {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
val test1: Map<String, String> by lazy(LazyThreadSafetyMode.NONE) {
|
||||
mapOf("string" to "string").mapValues { it.toString() }
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.properties.ReadOnlyProperty
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
object Host {
|
||||
class StringDelegate(val s: String) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
interface I {
|
||||
var z: String
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
interface I {
|
||||
var z: String
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user