dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Redundant imports to local entities

Open Schahen opened this issue 5 years ago • 0 comments

This code:

declare class Album {
  label: Album.AlbumLabel;
}

declare namespace Album {
   class AlbumLabel { }
}

Is converted to:

@file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE", "CONFLICTING_OVERLOADS", "EXTERNAL_DELEGATION")

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.*
import Album.AlbumLabel

external open class Album {
    open var label: AlbumLabel
    open class AlbumLabel
}

The import Album.AlbumLabel is redundant.

Schahen avatar Apr 14 '20 14:04 Schahen