Files
kotlin-fork/compiler/testData/codegen/box/smartCasts/genericIntersection.kt
T
2018-06-09 19:15:38 +03:00

11 lines
154 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_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")