Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
558 stars 42 forks source link

Conflicting overloads are not merged when typealias is used #376

Closed trilis closed 4 years ago

trilis commented 4 years ago
interface MockjsRandomBasic {
    character(pool: 'lower' | 'upper' | 'number' | 'symbol'): S;
    character(pool?: S): S;
}

type S = string

generates

external interface MockjsRandomBasic {
    fun character(pool: String /* "lower" | "upper" | "number" | "symbol" */): S
    fun character(pool: S = definedExternally): S
}

typealias S = String

which results in CONFLICTING_OVERLOADS