mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
10 lines
129 B
Kotlin
Vendored
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")
|