[FIR] Don't update explicit delegated constructor calls of classes with @JvmRecord

^KT-54573 Fixed
This commit is contained in:
Dmitriy Novozhilov
2022-12-06 12:39:57 +02:00
committed by Space Team
parent 880b278c40
commit d898e256ca
9 changed files with 69 additions and 0 deletions
@@ -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<!>())
}