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:
@@ -1,5 +1,5 @@
|
||||
// ERROR: 'public open fun foo(): Unit' conflicts with another declaration in class 'C'
|
||||
// ERROR: 'public open fun foo(): Unit' conflicts with another declaration in class 'C'
|
||||
// ERROR: Conflicting overloads: public open fun foo(): Unit defined in C, public open fun foo(): Unit defined in C
|
||||
// ERROR: Conflicting overloads: public open fun foo(): Unit defined in C, public open fun foo(): Unit defined in C
|
||||
interface I {
|
||||
open fun foo(){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user