Remove backend tests on old inference

Also remove any mentions of NewInference, and rename some tests.
This commit is contained in:
Alexander Udalov
2021-09-28 23:36:48 +02:00
parent 3626b1df44
commit 1071919706
179 changed files with 609 additions and 1953 deletions
@@ -1,6 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// !LANGUAGE: +NewInference
// ISSUE: KT-33545
import kotlin.experimental.ExperimentalTypeInference
@@ -29,4 +28,4 @@ fun <Value> Flow<Value>.asLiveData() = liveData {
// collect { emit(it) }
}
fun box(): String = "OK"
fun box(): String = "OK"
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -OPT_IN_USAGE_ERROR -UNUSED_EXPRESSION
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
// Issue: KT-36371
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: WASM
@@ -24,4 +23,4 @@ interface Flow<out T>
interface FlowCollector<in T>
fun box() = "OK"
fun box() = "OK"
@@ -1,6 +1,5 @@
// Issues: KT-33542, KT-33544
// WITH_RUNTIME
// !LANGUAGE: +NewInference
import kotlin.experimental.ExperimentalTypeInference
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
interface A<T> {
@@ -11,4 +10,4 @@ fun test(a: A<*>) {
fun box(): String {
return "OK"
}
}
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
// SKIP_DCE_DRIVEN
@@ -15,4 +14,4 @@ fun box(): String {
val sorted = foo.test(list)
return list.first()
}
}
-1
View File
@@ -1,6 +1,5 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// !LANGUAGE: +NewInference
// ISSUE: KT-32429
import kotlin.properties.Delegates.observable
-1
View File
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// !OPT_IN: kotlin.RequiresOptIn
// WITH_RUNTIME
-1
View File
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
// WITH_REFLECT
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference
// WITH_RUNTIME
inline fun <T> foo(f: () -> T): String {
@@ -27,4 +26,4 @@ fun test(b: Boolean): String {
fun box(): String {
return test(true)
}
}
@@ -1,5 +1,4 @@
// WITH_RUNTIME
// !LANGUAGE: +NewInference
class ExtensionReceiver
typealias SuspendExtensionFunction = suspend ExtensionReceiver.() -> Unit