adba0a03a6
If the primary constructor has a vararg parameter, the corresponding property has an array type. This commit creates the builtin array types for such properties if the vararg element type is primitive, e.g., CharArray instead of Array.
15 lines
310 B
Kotlin
Vendored
15 lines
310 B
Kotlin
Vendored
open class Foo(val value: String) {
|
|
|
|
open inner class Inner(val d: Double = -1.0, val s: String, vararg val y: Int) {
|
|
open fun result() = "Fail"
|
|
}
|
|
|
|
val obj = object : Inner(s = "O") {
|
|
override fun result() = s + value
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Foo("K").obj.result()
|
|
}
|