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,10 @@
var result = "fail"
open class Base(val o: String, val k: String)
fun box(): String {
val obj1 = object : Base(k = { result = "O"; "K"}() , o = {result += "K"; "O"}()) {}
if (result != "OK") return "fail $result"
return obj1.o + obj1.k
}