[FIR2IR] Mute some tests due to captured type problems

This commit is contained in:
Mikhail Glukhikh
2020-09-14 11:37:06 +03:00
parent aa897db132
commit e1b4108e4a
5 changed files with 30 additions and 37 deletions
@@ -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,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"