// !LANGUAGE: +ProhibitDataClassesOverridingCopy interface WithCopy { fun copy(str: T): WithCopy } data class Test(val str: String, val int: Int) : WithCopy { override fun copy(str: String) = copy(str, int) }