// EXPECTED_REACHABLE_NODES: 1293 package foo // CHECK_NOT_CALLED: test // CHECK_NOT_CALLED: fn class A(val x: Any? = null) { inline fun test(b: B) = b.fn() inline fun B.fn() = x is T && y is R } class B(val y: Any? = null) class X class Y fun box(): String { val x = X() val y = Y() assertEquals(true, A(x).test(B(y)), "A(x).test(B(y))") assertEquals(false, A(y).test(B(y)), "A(y).test(B(y))") assertEquals(false, A(y).test(B(x)), "A(y).test(B(x))") assertEquals(false, A(x).test(B(x)), "A(x).test(B(x))") return "OK" }