Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
This commit is contained in:
+1
-3
@@ -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
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-3
@@ -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)
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
|
||||
|
||||
fun use1(fn: (A, Int) -> Unit) {}
|
||||
|
||||
fun use2(fn: (Int) -> Unit) {}
|
||||
|
||||
-3
@@ -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
-2
@@ -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)
|
||||
|
||||
Vendored
+1
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
|
||||
|
||||
fun sum(vararg args: Int): Int {
|
||||
var result = 0
|
||||
for (arg in args)
|
||||
|
||||
Reference in New Issue
Block a user