dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Support global variables declared in module

Open Schahen opened this issue 5 years ago • 0 comments

Consider following code:

declare module "api" {
  global {
     function ping();
  }
}

It translates to following:

// [test] aaa.api.global.module_resolved_name.kt
@file:JsQualifier("api.global")
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS")
package api.global

external fun ping()

The qualifier here is a bug, since this are global declarations.

Schahen avatar Sep 16 '20 11:09 Schahen