mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
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:
committed by
Ron Evans
parent
41e787d504
commit
b08ff17f6b
Vendored
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user