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
|
||||
// IGNORE_BACKEND: JVM, WASM
|
||||
interface I<T> {
|
||||
fun foo(x: T): T
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JVM, WASM
|
||||
interface I<T> {
|
||||
fun foo(x: T): Any?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: JVM
|
||||
interface C<T> {
|
||||
abstract fun foo(x: T): String
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
fun <T> Result<T>.get(): T = getOrNull()!!
|
||||
|
||||
interface C<T> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: WASM
|
||||
interface I<T, V> {
|
||||
fun foo(x: T): V
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_STDLIB
|
||||
fun <T> Result<T>.getOrNullNoinline() = getOrNull()
|
||||
|
||||
val x = { a: Int, b: Result<String> -> b.getOrNullNoinline() }
|
||||
|
||||
Reference in New Issue
Block a user