Properly reorder arguments in anonymous object super class constructor

#KT-18356 Fixed
This commit is contained in:
Mikhael Bogdanov
2017-09-06 18:03:12 +02:00
parent 44fd8103d4
commit 2fa4c28e0f
13 changed files with 249 additions and 18 deletions
@@ -0,0 +1,17 @@
fun box(): String {
val capture = "O"
class Local {
val captured = capture
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 = "K") {
override fun result() = capture + s
}
}
return Local().obj.result()
}