Properly reorder arguments in anonymous object super class constructor
#KT-18356 Fixed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
open class Base(val addr: Long, val name: String)
|
||||
|
||||
fun box(): String {
|
||||
val obj1 = object : Base(name = "OK", addr = 0x1234L) {}
|
||||
if (obj1.addr != 0x1234L) return "fail ${obj1.addr}"
|
||||
return obj1.name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user