Front-end and back-end test for KT-7801
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// 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")
|
||||
Reference in New Issue
Block a user