interface A {} fun getA() = (object : A {}) as A fun box() : String { return if (getA() is A) "OK" else "FAIL" }