blob: 90079a3f9a3ef680ce753f639788429126337353 [file]
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
defineFunc<String>()
func(1)
return if (testedEquals) "OK" else "Fail"
}
var func: (Any) -> Unit = {}
var testedEquals = false
inline fun <reified T> defineFunc() {
func = {
val nullable = it as? T
if (nullable == null)
testedEquals = true
}
}