You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With current TinyGo dev branch, using strings.Split() causes a compile failure when compiling to wasm:
$ tinygo build -target wasm -o foo main.go
../../../../../../../usr/local/go/src/internal/bytealg/count_generic.go:19:6: function is already defined:internal/bytealg.CountString
$ go version
go version go1.13.4 linux/amd64
The compile failure only happens when the target is wasm. Without -target wasm, the compilation will succeed.
A minimal 100% reproducer:
package main
import (
"strings"
)
func main() {
s := strings.Split("An example string", "\n")
println(len(s))
}
The text was updated successfully, but these errors were encountered:
With current TinyGo dev branch, using
strings.Split()
causes a compile failure when compiling to wasm:The compile failure only happens when the target is
wasm
. Without-target wasm
, the compilation will succeed.A minimal 100% reproducer:
The text was updated successfully, but these errors were encountered: