Test for KT-7338: Incorrect code is emitted for is-checks with array types, resulting in java.lang.VerifyError

#KT-7338 Obsolete
This commit is contained in:
Michael Bogdanov
2015-04-09 11:10:33 +03:00
parent efd4a3ce84
commit 20653090d3
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,7 @@
fun foo(x : Any): String {
return if(x is Array<String>) x[0] else "fail"
}
fun box(): String {
return foo(array("OK"))
}