[Wasm] Add K2 diagnostic tests (KT-56849)
This commit is contained in:
committed by
Space Team
parent
1ddcdb95bd
commit
0da9cf8159
@@ -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
|
||||
Reference in New Issue
Block a user