// EXPECTED_REACHABLE_NODES: 1290 package foo // CHECK_CALLED: doRun // CHECK_NOT_CALLED: test class X class Y fun doRun(fn: ()->R): R = fn() inline fun test(x: Any, y: Any): Boolean = doRun { val isA = null x is A } && doRun { val result = y is B val isB = null result } fun box(): String { val x = X() val y = Y() assertEquals(true, test(x, y), "test(x, y)") assertEquals(false, test(x, x), "test(x, x)") assertEquals(false, test(y, x), "test(y, x)") assertEquals(false, test(y, y), "test(y, y)") return "OK" }