We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program
sample.go
triggers an unexpected resultExpected result
Got
Yaegi Version
da27c4f
Additional Notes
No response
The text was updated successfully, but these errors were encountered: