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.
28 lines
511 B
Kotlin
Vendored
28 lines
511 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// KOTLIN_CONFIGURATION_FLAGS: +JVM.INHERIT_MULTIFILE_PARTS
|
|
// FILE: box.kt
|
|
|
|
import a.*
|
|
|
|
fun box(): String = ok()
|
|
|
|
// FILE: part1.kt
|
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
|
package a
|
|
|
|
private fun overlapping() = "oops #1"
|
|
|
|
// FILE: part2.kt
|
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
|
package a
|
|
|
|
private fun overlapping() = "OK"
|
|
|
|
fun ok() = overlapping()
|
|
|
|
// FILE: part3.kt
|
|
@file:[JvmName("MultifileClass") JvmMultifileClass]
|
|
package a
|
|
|
|
private fun overlapping() = "oops #2"
|