compiler: disallow most types in //go:wasmimport

This is for compatibility with upstream Go.
See https://github.com/golang/go/issues/59149 for more context.
This commit is contained in:
Ayke van Laethem
2023-05-19 15:34:05 +02:00
committed by Ron Evans
parent 41e787d504
commit b08ff17f6b
4 changed files with 101 additions and 14 deletions
-4
View File
@@ -62,10 +62,6 @@ func exportedFunctionInSection() {
//go:wasmimport modulename import1
func declaredImport()
//go:wasmimport modulename import2
func definedImport() {
}
// This function should not: it's only a declaration and not a definition.
//
//go:section .special_function_section