mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
f4ce11ef37
The compiler can in fact return errors, but these weren't tested yet.
14 lines
292 B
Go
14 lines
292 B
Go
package main
|
|
|
|
//go:wasmimport foo bar
|
|
func foo() {
|
|
}
|
|
|
|
//go:align 7
|
|
var global int
|
|
|
|
// TODO: include package name in the error message
|
|
|
|
// ERROR: compiler.go:4:6: can only use //go:wasmimport on declarations
|
|
// ERROR: compiler.go:8:5: global variable alignment must be a positive power of two
|