Files
kotlin-fork/compiler/testData/codegen/box/smartCasts/genericIntersection.kt
T
2019-11-19 11:00:09 +03:00

11 lines
159 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
// See also KT-7801
class A
fun <T> test(v: T): T {
val a: T = if (v !is A) v else v
return a
}
fun box() = test("OK")