[Wasm] Add K2 diagnostic tests (KT-56849)

This commit is contained in:
Svyatoslav Kuzmich
2023-09-11 12:01:48 +02:00
committed by Space Team
parent 1ddcdb95bd
commit 0da9cf8159
13 changed files with 626 additions and 4 deletions
@@ -0,0 +1,25 @@
// !OPT_IN: kotlin.js.ExperimentalJsExport
@JsExport
fun foo1() {
}
class C {
@JsExport
fun memberFunction() {
}
}
fun foo2() {
@JsExport
fun localFun() {
}
}
val p1 = (@JsExport fun () {})
<!WRONG_ANNOTATION_TARGET!>@JsExport<!>
class C2
<!WRONG_ANNOTATION_TARGET!>@JsExport<!>
var p2: Int = 1