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,5 +1,3 @@
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
fun use(f: C.(Int) -> Unit) {}
class C
@@ -20,4 +18,4 @@ fun testExtensionDefault() {
fun testExtensionBoth() {
use(C::extensionBoth)
}
}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface IFoo {
fun foo(i: Int)
@@ -45,4 +44,4 @@ fun test6(a: Any) {
a as (Int) -> Unit
a as IFoo
A[a] += 1
}
}
@@ -1,5 +1,3 @@
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
fun use(fn: (Int) -> Any) = fn(42)
class C(vararg xs: Int)
@@ -12,4 +10,4 @@ fun testConstructor() = use(::C)
fun testInnerClassConstructor(outer: Outer) = use(outer::Inner)
fun testInnerClassConstructorCapturingOuter() = use(Outer()::Inner)
fun testInnerClassConstructorCapturingOuter() = use(Outer()::Inner)
@@ -1,5 +1,3 @@
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
fun use1(fn: (A, Int) -> Unit) {}
fun use2(fn: (Int) -> Unit) {}
@@ -1,5 +1,3 @@
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
fun interface IFoo {
fun foo(i: Int)
}
@@ -11,4 +9,3 @@ fun withVararg(vararg xs: Int) = 42
fun test() {
useFoo(::withVararg)
}
@@ -1,4 +1,3 @@
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
import Host.importedObjectMemberWithVarargs
fun use(fn: (Int) -> String) = fn(1)
@@ -27,4 +26,4 @@ fun testImportedObjectMember() = use(::importedObjectMemberWithVarargs)
fun testDefault0() = use0(::fnWithDefaults)
fun testVararg0() = use0(::fnWithVarargs)
fun testVararg0() = use0(::fnWithVarargs)
@@ -1,5 +1,3 @@
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
fun use(fn: (Int) -> Unit) { fn(1) }
class Host {
@@ -26,4 +24,4 @@ class Host {
fun testBoundReceiverExpression() {
use(Host()::withVararg)
}
}
}
@@ -1,5 +1,3 @@
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
fun sum(vararg args: Int): Int {
var result = 0
for (arg in args)