Files
kotlin/compiler/testData/codegen/box/smartCasts/genericIntersection.kt
Mark Punzalan 5afab1ac2b [FIR] FIR2IR: Populate calls with type arguments and function type
parameters with bounds/supertypes.
2019-11-25 09:37:47 +03:00

10 lines
129 B
Kotlin
Vendored

// 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")