cmd/compile: inaccurate compiler error on duplicate wasmexport symbol #68982
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Go version
tip
Output of
go env
in your module/workspace:What did you do?
I created a package that exported two identical symbols (in the same package) using the go:wasmexport compiler directive.
What did you see happen?
I saw a compiler error:
What did you expect to see?
The error message should be able to point to the line number of both symbols:
It is also notable that
main.go:5
is the location of the return, not the compiler directive.The text was updated successfully, but these errors were encountered: