Change Signature: Substitute parameter references in default values of call expression arguments
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
open class A {
|
||||
constructor(): this(1 + 1)
|
||||
|
||||
constructor(i: Int) {
|
||||
val t = i / 2
|
||||
}
|
||||
}
|
||||
|
||||
class B: A {
|
||||
constructor(n: Int): super(n + 1 + 1)
|
||||
}
|
||||
|
||||
class C: A(1 + 1) {
|
||||
|
||||
}
|
||||
|
||||
fun test() = A(1 + 1)
|
||||
Reference in New Issue
Block a user