Skip to content
New issue

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

min/max functions are undefined #1674

Open
lboynton opened this issue Dec 19, 2024 · 0 comments
Open

min/max functions are undefined #1674

lboynton opened this issue Dec 19, 2024 · 0 comments

Comments

@lboynton
Copy link

lboynton commented Dec 19, 2024

The following program sample.go triggers an unexpected result

package main

import "fmt"

func main() {
	fmt.Println(max(1, 2))
}

Expected result

$ go run ./sample.go
2

Got

$ yaegi ./sample.go
run: sample.go:6:14: undefined: max

Yaegi Version

v0.16.1

Additional Notes

These functions should be part of Go 1.21: https://go.dev/ref/spec#Min_and_max

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant