Files
kotlin-fork/compiler/testData/diagnostics/tests/dataClasses/conflictingCopyOverloads.fir.kt
T
Jinseong Jeon f1d8a6e5d1 FIR checker: introduce DECLARATION_SIGNATURE_OR_DEFAULT positioning strategy
and fix CONFLICTING_OVERLOADS to use it
2021-01-21 16:06:09 +03:00

6 lines
213 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
data class A(val x: Int, val y: String) {
<!CONFLICTING_OVERLOADS!>fun copy(x: Int, y: String)<!> = x
<!CONFLICTING_OVERLOADS!>fun copy(x: Int, y: String)<!> = A(x, y)
}