mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
Ensure that the code generated for `for s, _ = range ...` is the same as `for s = range ...`. Fixes #1622.
14 lines
134 B
Go
14 lines
134 B
Go
package main
|
|
|
|
func main() {
|
|
myMap := map[string]int{"a":2}
|
|
|
|
for s, _ := range myMap {
|
|
_ = s
|
|
}
|
|
println("ok")
|
|
}
|
|
|
|
// Output:
|
|
// ok
|