1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
10 lines
129 B
Kotlin
10 lines
129 B
Kotlin
// 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")
|