[FIR2IR] Mute some tests due to captured type problems
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// !LANGUAGE: -NewInference
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
// FILE: example/Hello.java
|
||||
@@ -37,6 +38,7 @@ fun box(): String {
|
||||
// a::someFunction parameter has type of Nothing
|
||||
// while it's completely safe to pass a lambda for a SAM
|
||||
// since Hello is effectively contravariant by its parameter
|
||||
// NB: this ^ is not supported by FIR yet
|
||||
a.someFunction {
|
||||
result = it
|
||||
}
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: example/Hello.java
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: A.java
|
||||
public class A<T> {
|
||||
@@ -11,6 +12,7 @@ public class A<T> {
|
||||
// FILE: test.kt
|
||||
fun f(x: Any): String {
|
||||
if (x is A<*>) {
|
||||
// Fails in FIR due to inconsistent lambda argument type (Nothing? expected)
|
||||
return x.call { y: Any? -> "OK" }
|
||||
}
|
||||
return "Fail"
|
||||
|
||||
Reference in New Issue
Block a user