Fix exception from data class codegen for light classes

EA-66827
This commit is contained in:
Alexander Udalov
2015-09-09 18:10:51 +03:00
parent 47b8853051
commit a946f787bc
7 changed files with 74 additions and 112 deletions
@@ -0,0 +1,7 @@
data class A(val x: Int) {
fun toArray(): IntArray =
intArrayOf(x)
override fun <!RETURN_TYPE_MISMATCH_ON_OVERRIDE!>toString<!>() =
toArray().takeWhile { it != -1 } // .joinToString()
}