[JS] Forbid export of interfaces
With the only exception of external interfaces. See https://youtrack.jetbrains.com/issue/KT-44099
This commit is contained in:
+6
@@ -18,3 +18,9 @@ enum class <!WRONG_EXPORTED_DECLARATION("enum class")!>EnumClass<!> { ENTRY1, EN
|
||||
|
||||
@JsExport
|
||||
annotation class <!WRONG_EXPORTED_DECLARATION("annotation class")!>AnnotationClass<!>
|
||||
|
||||
@JsExport
|
||||
interface <!WRONG_EXPORTED_DECLARATION("interface")!>SomeInterface<!>
|
||||
|
||||
@JsExport
|
||||
external interface GoodInterface
|
||||
|
||||
Reference in New Issue
Block a user