[K/JS] Include protected member declarations into checked by JsExportDeclarationChecker declarations ^Fixed KT-55786

This commit is contained in:
Artem Kobzar
2023-01-05 16:30:23 +00:00
committed by Space Team
parent d0183f78ff
commit 7d881842b4
5 changed files with 31 additions and 3 deletions
@@ -12,4 +12,9 @@ class C(val x: String) {
class C2(val x: String) {
@JsName("JsNameProvided")
constructor(x: Int): this(x.toString())
}
}
@JsExport
class C3(val x: String) {
protected <!WRONG_EXPORTED_DECLARATION("secondary constructor without @JsName")!>constructor(x: Int)<!>: this(x.toString())
}