3dc7b6c3ee
1. receivers should be evaluated before named arguments;
2. just because an argument has no side effects doesn't mean it is not
affected by the other arguments' side effects - in that case it
should still be evaluated in source order.
#KT-47660 Fixed
9 lines
263 B
Kotlin
Vendored
9 lines
263 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
open class Base(val x: Int, val y: Int)
|
|
|
|
class Test1(xx: Int, yy: Int) : Base(y = yy, x = xx)
|
|
|
|
class Test2 : Base {
|
|
constructor(xx: Int, yy: Int) : super(y = yy, x = xx)
|
|
constructor(xxx: Int, yyy: Int, a: Any) : this(yy = yyy, xx = xxx)
|
|
} |