dukat
dukat copied to clipboard
Modules with unquoted names are treated like JsModules
Following test case we have:
declare module a {
function ping(a: b.AlphaNumeric);
}
declare module b {
type AlphaNumeric = string | number
}
export = a.ping
is translated to:
package a
@JsModule("resolved_name")
external fun ping(a: String)
@JsModule("resolved_name")
external fun ping(a: Number)
Which is wrong since module with name without quotes it's just a namespace under disguise.