Front-end and back-end test for KT-7801

This commit is contained in:
Mikhail Glukhikh
2016-01-21 14:14:57 +03:00
parent 7ac55cefcb
commit 3106a8508a
5 changed files with 38 additions and 0 deletions
@@ -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")