Cannot import "golang.org/x/text/encoding/charmap"
ddtmachado opened this issue · comments
Douglas De Toni Machado commented
The following program sample.go
triggers an unexpected result
package main
import (
"golang.org/x/text/encoding/charmap"
)
func main() {
e := charmap.ISO8859_1.NewEncoder()
e.String("foo")
}
Expected result
$ go run main.go
foo <nil>
Got
$ yaegi run main.go
run: main.go:6:2: import "golang.org/x/text/encoding/charmap" error: /home/douglas/go/src/golang.org/x/text/encoding/charmap/charmap.go:61:5: variable definition loop
Yaegi Version
0.13.0
Additional Notes
No response
Marc Vertes commented
fixed by #1441