KT-13961 REDECLARATION not reported on private-in-file 'foo' vs public 'foo' in different file
Private-in-file declarations conflict with public overload-equivalent declarations in other files in the same package. Move functions for grouping possible redeclarations to OverloadResolver (since they are used only there). Refactor redeclarations / conflicting overloads reporting.
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
// FILE: f.kt
|
||||
package a
|
||||
class <!REDECLARATION!>b<!> {}
|
||||
class <!PACKAGE_OR_CLASSIFIER_REDECLARATION!>b<!> {}
|
||||
// FILE: f.kt
|
||||
package a.<!REDECLARATION!>b<!>
|
||||
package a.<!PACKAGE_OR_CLASSIFIER_REDECLARATION!>b<!>
|
||||
// FILE: f.kt
|
||||
package a.<!REDECLARATION!>b<!>
|
||||
package a.<!PACKAGE_OR_CLASSIFIER_REDECLARATION!>b<!>
|
||||
Reference in New Issue
Block a user