Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
2a568be17b8f4a9af8f61b27d156c07d37c12fdc
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
dataClasses
/
dataClassNotOverridingCopy.kt
blob: bbd4612a07879f7f238900818a247b44bcf9f22f [
file
]
// FIR_IDENTICAL
// !LANGUAGE: +ProhibitDataClassesOverridingCopy
interface
WithCopy
<
T
>
{
fun copy
(
str
:
T
):
WithCopy
<
T
>
}
data
class
Test
(
val str
:
String
,
val
int
:
Int
)
:
WithCopy
<
String
>
{
override
fun copy
(
str
:
String
)
=
copy
(
str
,
int
)
}