[Wasm] Add @JsExport diagnostics test

@JsExport is only allowed on top-level functions in K/Wasm

Restrictions for nested function are handled by reusing K/JS diagnostics
Restrictions for classes and properties are handled by specifying
 annotation target in stdlib
This commit is contained in:
Svyatoslav Kuzmich
2023-02-17 16:35:59 +01:00
committed by Space Team
parent b4fcfd6719
commit f79607d32d
2 changed files with 31 additions and 0 deletions
@@ -50,5 +50,11 @@ public class DiagnosticsWasmTestGenerated extends AbstractDiagnosticsWasmTest {
public void testInheritance() throws Exception {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/inheritance.kt");
}
@Test
@TestMetadata("jsExport.kt")
public void testJsExport() throws Exception {
runTest("compiler/testData/diagnostics/wasmTests/jsInterop/jsExport.kt");
}
}
}