-
Notifications
You must be signed in to change notification settings - Fork 383
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
GnoVM: Constant expressions do not work with some built-in functions #2829
Comments
As far as I can see, |
if you find this is the case for other constant expressions (like as leon said, min/max are not supported yet, we'll need generics #1748 before that |
maybe we should return the right error for that "name min/max not declared" |
yeah, you're welcome to adapt the error message, i agree it's unclear. |
Description
In Go, the following code snippet compiles and runs correctly, using the built-in
min
/max
function within a constant expression:However, when using the same code in Gno, it returns an error:
Expected Behavior
The code should compile successfully in Gno, similar to how it works in Go, allowing the use of built-in functions in constant expressions.
The text was updated successfully, but these errors were encountered: