Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
553 stars 44 forks source link

Sumation type arugments on interfaces cause compilation issues #344

Closed hunterwerlla closed 4 years ago

hunterwerlla commented 4 years ago

Using Dukat 0.5.7 and Kotlin 1.4.0-rc, generating externals for "@types/vscode": implementation(npm("@types/vscode", "1.42.0", generateExternals = true))

The vscode code:

export interface QuickPickOptions {
...
onDidSelectItem?(item: QuickPickItem | string): any;
...
}

generates:

    val onDidSelectItem: ((item: QuickPickItem) -> Any)?
        get() = definedExternally
    val onDidSelectItem: ((item: String) -> Any)?
        get() = definedExternally

which causes a Conflicting declarations error.