FILE: casts.kt public final fun test_1(x: R|kotlin/Any?|): R|kotlin/Unit| { (R|/x| as R|kotlin/String|) R|/x|.R|kotlin/String.length| } public final fun test_2(x: R|kotlin/Any?|): R|kotlin/Unit| { when () { (R|/x| as R|kotlin/Boolean|) -> { R|/x|.R|kotlin/Boolean.not|() } } R|/x|.R|kotlin/Boolean.not|() } public final fun test_3(b: R|kotlin/Boolean|, x: R|kotlin/Any?|): R|kotlin/Unit| { when () { R|/b| && (R|/x| as R|kotlin/Boolean|) -> { R|/x|.R|kotlin/Boolean.not|() } } R|/x|.#() when () { R|/b| && ==((R|/x| as R|kotlin/Boolean|), Boolean(true)) -> { R|/x|.R|kotlin/Boolean.not|() } } R|/x|.#() when () { R|/b| || (R|/x| as R|kotlin/Boolean|) -> { R|/x|.#() } } R|/x|.#() } public final fun test_4(b: R|kotlin/Any|): R|kotlin/Unit| { when () { !=((R|/b| as? R|kotlin/Boolean|), Null(null)) -> { R|/b|.R|kotlin/Boolean.not|() } else -> { R|/b|.#() } } R|/b|.#() when () { ==((R|/b| as? R|kotlin/Boolean|), Null(null)) -> { R|/b|.#() } else -> { R|/b|.R|kotlin/Boolean.not|() } } R|/b|.#() }