[FIR] Report conflicts for data class generated members

^KT-59880
This commit is contained in:
Nikolay Lunyak
2023-10-10 12:37:19 +03:00
committed by Space Team
parent afc22728fa
commit bc2eb546b4
5 changed files with 12 additions and 9 deletions
@@ -4,7 +4,7 @@
annotation class An
@An
data class A(@An val x: @An Int) {
@An
fun copy(@An x: @An Int) = x
data class <!CONFLICTING_OVERLOADS("[@An() fun copy(@An() x: @R|An|() Int): @R|An|() Int]")!>A(@An val x: @An Int)<!> {
<!CONFLICTING_OVERLOADS("[fun copy(@An() x: @R|An|() Int = ...): A]")!>@An
fun copy(@An x: @An Int)<!> = x
}