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:
@@ -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"))
|
||||
}
|
||||
Reference in New Issue
Block a user