fun test1() {
  throw TODO("IrConstructorCall")
}

fun testImplicitCast(a: Any) {
  when {
    a is Throwable -> { // BLOCK
      throw a /*as Throwable */
    }
  }
}

