Properly reorder arguments in anonymous object super class constructor
#KT-18356 Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user