06d2befb72
#KT-59415 Fixed
10 lines
255 B
Kotlin
Vendored
10 lines
255 B
Kotlin
Vendored
// !LANGUAGE: +ProhibitDataClassesOverridingCopy
|
|
|
|
interface WithCopy<T> {
|
|
fun copy(str: T): WithCopy<T>
|
|
}
|
|
|
|
<!DATA_CLASS_OVERRIDE_DEFAULT_VALUES!>data<!> class Test(val str: String) : WithCopy<String> {
|
|
override fun copy(str: String) = Test(str)
|
|
}
|