[JS IR] Make tests that use directives pass with IR BE
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
||||
package foo
|
||||
|
||||
// CHECK_NOT_CALLED: isTypeOfOrNull
|
||||
// CHECK_NULLS_COUNT: function=box count=10
|
||||
// CHECK_NULLS_COUNT: function=box count=10 TARGET_BACKENDS=JS
|
||||
// CHECK_NULLS_COUNT: function=box count=6 IGNORED_BACKENDS=JS
|
||||
|
||||
inline
|
||||
fun <reified T> Any?.isTypeOfOrNull() = this is T?
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1682
|
||||
package foo
|
||||
|
||||
// CHECK_NOT_CALLED: test
|
||||
// CHECK_NOT_CALLED_IN_SCOPE: function=test scope=box
|
||||
|
||||
class A(val x: Int)
|
||||
class B(val x: Int)
|
||||
@@ -32,4 +32,4 @@ fun box(): String {
|
||||
assertEquals(listOf(b2, b4), test<B>(a1, a3, *objects, a3, b4), "test<B>(a1, a3, *objects, a3, b4)")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
package foo
|
||||
|
||||
// NO_INLINE
|
||||
// CHECK_CALLED_IN_SCOPE: scope=box function=isInstanceOf
|
||||
// CHECK_CALLED_IN_SCOPE: scope=box function=isInstanceOf TARGET_BACKENDS=JS
|
||||
|
||||
class A
|
||||
class B
|
||||
|
||||
Reference in New Issue
Block a user