blob: c3f907060a462d92c8351869d6fa0b1325365731 [file]
// ORIGINAL: /compiler/testData/diagnostics/tests/dataClasses/dataClassExplicitlyOverridingCopyNoDefaults.fir.kt
// WITH_STDLIB
// !LANGUAGE: +ProhibitDataClassesOverridingCopy
interface WithCopy<T> {
fun copy(str: T): WithCopy<T>
}
data class Test(val str: String) : WithCopy<String> {
override fun copy(str: String) = Test(str)
}
fun box() = "OK"