Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
This commit is contained in:
+24
-5
@@ -1,12 +1,23 @@
|
||||
// FIR_IDENTICAL
|
||||
// TARGET_BACKEND: JVM
|
||||
// !LANGUAGE: +NewInference +SamConversionPerArgument +ProhibitVarargAsArrayAfterSamArgument
|
||||
// FILE: samConversionInGenericConstructorCall.kt
|
||||
fun test1(f: (String) -> String) = C(f)
|
||||
fun test3(
|
||||
f1: (String) -> String,
|
||||
f2: (Int) -> String
|
||||
) =
|
||||
C(f1).D(f2)
|
||||
|
||||
fun test2(x: Any) {
|
||||
x as (String) -> String
|
||||
C(x)
|
||||
class Outer<T1>(val j11: J<T1, T1>) {
|
||||
inner class Inner<T2>(val j12: J<T1, T2>)
|
||||
}
|
||||
|
||||
fun test4(f: (String) -> String, g: (Any) -> String) = Outer(f).Inner(g)
|
||||
|
||||
fun testGenericJavaCtor1(f: (String) -> Int) = G(f)
|
||||
|
||||
fun testGenericJavaCtor2(x: Any) {
|
||||
x as (String) -> Int
|
||||
G(x)
|
||||
}
|
||||
|
||||
// FILE: J.java
|
||||
@@ -17,5 +28,13 @@ public interface J<T1, T2> {
|
||||
// FILE: C.java
|
||||
public class C<X> {
|
||||
public C(J<X, X> jxx) {}
|
||||
|
||||
public class D<Y> {
|
||||
public D(J<X, Y> jxy) {}
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: G.java
|
||||
public class G<TClass> {
|
||||
public <TCtor> G(J<TCtor, TClass> x) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user