[FIR] Add diagnostic CONFLICTING_OVERLOADS & REDECLARATION
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
data class A(val x: Int, val y: String) {
|
||||
fun copy(x: Int, y: String) = x
|
||||
fun copy(x: Int, y: String) = A(x, y)
|
||||
<!CONFLICTING_OVERLOADS!>fun copy(x: Int, y: String) = x<!>
|
||||
<!CONFLICTING_OVERLOADS!>fun copy(x: Int, y: String) = A(x, y)<!>
|
||||
}
|
||||
Reference in New Issue
Block a user