[JS, Frontend] Forbid @JsExporting inline/value classes
Previously the compiler would just crash. #KT-46202 Fixed
This commit is contained in:
+13
@@ -1,5 +1,6 @@
|
||||
// !USE_EXPERIMENTAL: kotlin.js.ExperimentalJsExport
|
||||
// !RENDER_DIAGNOSTICS_MESSAGES
|
||||
// !DIAGNOSTICS: -INLINE_CLASS_DEPRECATED
|
||||
|
||||
package foo
|
||||
|
||||
@@ -24,3 +25,15 @@ interface <!WRONG_EXPORTED_DECLARATION("interface")!>SomeInterface<!>
|
||||
|
||||
@JsExport
|
||||
external interface GoodInterface
|
||||
|
||||
@JsExport
|
||||
value class <!WRONG_EXPORTED_DECLARATION("value class")!>A(val a: Int)<!>
|
||||
|
||||
@JsExport
|
||||
inline class <!WRONG_EXPORTED_DECLARATION("inline class")!>B(val b: Int)<!>
|
||||
|
||||
@JsExport
|
||||
inline value class <!WRONG_EXPORTED_DECLARATION("inline value class")!>C(val c: Int)<!>
|
||||
|
||||
@JsExport
|
||||
value inline class <!WRONG_EXPORTED_DECLARATION("inline value class")!>D(val d: Int)<!>
|
||||
|
||||
Reference in New Issue
Block a user