dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Modules with unquoted names are treated like JsModules

Open Schahen opened this issue 5 years ago • 0 comments

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.

Schahen avatar Sep 17 '20 11:09 Schahen