06101dba52
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.
16 lines
371 B
Kotlin
Vendored
16 lines
371 B
Kotlin
Vendored
// FILE: f.kt
|
|
package redeclarations
|
|
object <!PACKAGE_OR_CLASSIFIER_REDECLARATION, REDECLARATION!>A<!> {
|
|
val x : Int = 0
|
|
|
|
val A = 1
|
|
}
|
|
|
|
class <!PACKAGE_OR_CLASSIFIER_REDECLARATION!>A<!> {}
|
|
|
|
val <!PACKAGE_OR_CLASSIFIER_REDECLARATION, REDECLARATION!>A<!> = 1
|
|
|
|
// FILE: f.kt
|
|
package redeclarations.<!PACKAGE_OR_CLASSIFIER_REDECLARATION!>A<!>
|
|
class A {}
|