Open karelorigin opened 4 months ago
sample.go
package main import "fmt" var values = []string{ "hello", "there", } func print[T any](v ...[]T) { fmt.Println(v) } func main() { print(values) // Works with: print[string](values) }
$ go run ./sample.go // [[hello there]]
$ yaegi ./sample.go // run: ./sample.go:10:12: undefined type for T
da27c4f
No response
Still an issue in v0.16.1
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
da27c4f
Additional Notes
No response