[FIR] Don't update explicit delegated constructor calls of classes with @JvmRecord
^KT-54573 Fixed
This commit is contained in:
committed by
Space Team
parent
880b278c40
commit
d898e256ca
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// FIR_IDENTICAL
|
||||
// SKIP_TXT
|
||||
// ISSUE: KT-54573
|
||||
// JVM_TARGET: 17
|
||||
|
||||
@JvmRecord
|
||||
data class A constructor(val x: Int, val s: String) {
|
||||
constructor(x: Long, s: String) : <!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>super<!>(<!TOO_MANY_ARGUMENTS!>x.toInt()<!>, <!TOO_MANY_ARGUMENTS!>s<!>)
|
||||
constructor(x: Byte, s: String) : <!PRIMARY_CONSTRUCTOR_DELEGATION_CALL_EXPECTED!>super<!>(<!TOO_MANY_ARGUMENTS!>x.toInt()<!>, <!TOO_MANY_ARGUMENTS!>s.<!UNRESOLVED_REFERENCE!>unresolved<!>()<!>)
|
||||
|
||||
constructor(s: String) : this(s.length, s)
|
||||
constructor(s: CharSequence) : this(s.length, s.<!UNRESOLVED_REFERENCE!>unresolved<!>())
|
||||
}
|
||||
Reference in New Issue
Block a user