[K/JS] Support companion objects in external and exported declarations
This commit is contained in:
+8
-1
@@ -25,7 +25,14 @@ external interface GoodInterface
|
||||
|
||||
@JsExport
|
||||
interface InterfaceWithCompanion {
|
||||
companion <!WRONG_EXPORTED_DECLARATION("companion object inside exported interface")!>object<!> {
|
||||
companion object {
|
||||
fun foo() = 42
|
||||
}
|
||||
}
|
||||
|
||||
@JsExport
|
||||
interface InterfaceWithNamedCompanion {
|
||||
companion <!NAMED_COMPANION_IN_EXPORTED_INTERFACE!>object Named<!> {
|
||||
fun foo() = 42
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user