Fix for KT-15446: Property reference on an instance of subclass causes java.lang.VerifyError

#KT-15446 Fixed
This commit is contained in:
Mikhael Bogdanov
2016-12-29 13:37:59 +01:00
parent ff734ce9ea
commit 043f3199c7
9 changed files with 103 additions and 3 deletions
@@ -0,0 +1,15 @@
//WITH_RUNTIME
// IGNORE_BACKEND: JS
fun box(): String {
val a = intArrayOf(1, 2)
val b = arrayOf("OK")
if ((a::component2)() != 2) {
return "fail"
}
if ((a::get)(1) != 2) {
return "fail"
}
return (b::get)(0)
}