[Wasm/WASI] Allow external declarations only for top-level functions
Fix #KT-63737
This commit is contained in:
committed by
Space Team
parent
376a9b8ace
commit
ff20ae34e5
+9
-3
@@ -3,9 +3,15 @@ import kotlin.wasm.WasmImport
|
||||
|
||||
<!WASI_EXTERNAL_FUNCTION_WITHOUT_IMPORT!>external fun foo(): Int<!>
|
||||
|
||||
external interface I {
|
||||
<!WASI_EXTERNAL_NOT_TOP_LEVEL_FUNCTION!>fun foo(): Int<!>
|
||||
}
|
||||
<!WASI_EXTERNAL_NOT_TOP_LEVEL_FUNCTION!>external interface I {
|
||||
fun foo(): Int
|
||||
}<!>
|
||||
|
||||
<!WASI_EXTERNAL_NOT_TOP_LEVEL_FUNCTION!>external class X<!>
|
||||
|
||||
<!WASI_EXTERNAL_NOT_TOP_LEVEL_FUNCTION!>external val v: Int<!>
|
||||
|
||||
external <!WASI_EXTERNAL_NOT_TOP_LEVEL_FUNCTION!>object AC<!>
|
||||
|
||||
@WasmImport("a", "b")
|
||||
external fun importedFoo(): Int
|
||||
|
||||
Reference in New Issue
Block a user