JVM IR: unmute tests on anonymous objects in inline lambdas
All tests on anonymous objects should use the NO_CHECK_LAMBDA_INLINING directive, since the test framework can't tell an anonymous object from a lambda and checking that anonymous objects are "inlined" makes no sense.
This commit is contained in:
+3
-2
@@ -1,5 +1,6 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
|
// IGNORE_BACKEND_MULTI_MODULE: JVM
|
||||||
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
@@ -28,4 +29,4 @@ class A(val x: String, f: () -> IFoo = {
|
|||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
return A("O").foo.foo()
|
return A("O").foo.foo()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// IGNORE_BACKEND: JVM
|
||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
|
// IGNORE_BACKEND_MULTI_MODULE: JVM
|
||||||
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
@@ -21,4 +22,4 @@ fun box(): String {
|
|||||||
o
|
o
|
||||||
}
|
}
|
||||||
return x.bar()
|
return x.bar()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
@@ -21,4 +20,4 @@ fun box(): String {
|
|||||||
o
|
o
|
||||||
}
|
}
|
||||||
return x.bar()
|
return x.bar()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JVM
|
// NO_CHECK_LAMBDA_INLINING
|
||||||
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
|
|
||||||
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
|
|
||||||
package test
|
package test
|
||||||
@@ -28,4 +26,4 @@ fun bar(): Int {
|
|||||||
}.compute()
|
}.compute()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun box() = if (bar() == 42) "OK" else "fail"
|
fun box() = if (bar() == 42) "OK" else "fail"
|
||||||
|
|||||||
Reference in New Issue
Block a user