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
//FILE: test.kt
fun box() {
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
class C {
@kotlin.jvm.JvmOverloads fun foo(firstParam: Int, secondParam: String = "") {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun hasLocal(): Int {
val x = 41
@@ -1,6 +1,6 @@
// The JVM backend does not have `x` visible in the locals table for the for loop at all.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
suspend fun h() { }
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
import kotlin.coroutines.intrinsics.*
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
suspend fun box() {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
class A {
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend has the local y covering the finally block as well.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box() {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local variables `y` and `i` are visible in the finally block with old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun f(block: () -> Unit) {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local variables `z` and `y` are visible in the finally block with old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local variables `z` and `y` are visible in the finally block with old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local variables `y` and `i` are visible in finally blocks with old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
try {
+1 -1
View File
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
try {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local `i` is visible in the finally block with old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box(): String {
try {
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend has the local y covering the finally block as well.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun box() {
var result = ""
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend has the local y covering the finally block as well.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun compute(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend gets the local variables for finally blocks wrong.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
fun compute(): String {
+1 -1
View File
@@ -1,6 +1,6 @@
// JVM backend has the `a` local covering the finally block. It shouldn't.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun g(block: () -> Unit) {
+1 -1
View File
@@ -1,6 +1,6 @@
// JVM backend has `a` visible in the `compute` finally block. It shouldn't be.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun h(block: () -> Unit) {
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend has `y` and `j` visible on the finally block.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun f(block: () -> Unit) {
+1 -1
View File
@@ -1,6 +1,6 @@
// The old backend has `y` and `i` visible on the finally block.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun f(block: () -> Unit) {
+1 -1
View File
@@ -1,6 +1,6 @@
// The local variables in the try and finally blocks are not removed for the finally block with the old backend.
// IGNORE_BACKEND: JVM
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
inline fun f(block: () -> Unit) {
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
suspend fun foo(block: Long.() -> String): String {
return 1L.block()
@@ -1,4 +1,4 @@
// WITH_RUNTIME
// WITH_STDLIB
// FILE: test.kt
suspend fun foo(block: suspend Long.() -> String): String {
return 1L.block()