Since we are merging namespaces and interfaces, we have to extract type aliases, and while we do so, we end up with following code:
typealias Handler = () -> Unit
typealias Handler = ICompiler.Handler
external interface ICompiler
external open class Compiler : ICompiler {
open fun ping(): Compiler.Handler
}
The compilation of such code will cause lot of error: unresolved reference: Handler errors because of the name clash.
Current proposal is to rename one of aliases if such clash occurs.
Consider following code:
Since we are merging namespaces and interfaces, we have to extract type aliases, and while we do so, we end up with following code:
The compilation of such code will cause lot of
error: unresolved reference: Handler
errors because of the name clash. Current proposal is to rename one of aliases if such clash occurs.