// IGNORE_BACKEND: WASM // WASM_MUTE_REASON: IGNORED_IN_JS // IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: JS_IR // IGNORE_BACKEND: JS_IR_ES6 // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS // WITH_STDLIB inline fun foo(x: Any?) = Pair(x is T, x is T?) fun box(): String { val x1 = foo>(arrayOf("")) if (x1.toString() != "(true, true)") return "fail 1" val x2 = foo?>(arrayOf("")) if (x2.toString() != "(true, true)") return "fail 2" val x3 = foo>(null) if (x3.toString() != "(false, true)") return "fail 3" val x4 = foo?>(null) if (x4.toString() != "(true, true)") return "fail 4" val x5 = foo?>(arrayOf("")) if (x5.toString() != "(false, false)") return "fail 5" val x6 = foo?>(null) if (x6.toString() != "(true, true)") return "fail 6" return "OK" }