dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Corrupted JsQualifier is package name is set

Open Schahen opened this issue 5 years ago • 0 comments

compile file with following content:

export namespace My.Deeply.Nested.Response {
    interface Api {}
}

with -p XXX flag

one will get:

@file:JsQualifier("XXX.My.Deeply.Nested.Response")
@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")
package XXX.My.Deeply.Nested.Response

import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.fetch.*
import org.w3c.files.*
import org.w3c.notifications.*
import org.w3c.performance.*
import org.w3c.workers.*
import org.w3c.xhr.*

external interface Api

I need to investigate whether we need @JsQualifier here however in any case it's value is incorrect - packageName should not affect JsQualifier

Schahen avatar Jan 30 '20 22:01 Schahen