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
Unless I missed something, this program should be verified fine:
method Main () { var arr := [[1]]; var x := |((arr + arr) + (arr + arr))|; }
but it results in Error: the type of this expression is underspecified.
Error: the type of this expression is underspecified
Subtle changes to the program make it verified:
method Main () { var arr := [[1]]; var x := |(arr + (arr + (arr + arr)))|; }
or
method Main () { var arr := [[1]]; var x := ((arr + arr) + (arr + arr)); var y := |x|; }
EDITED: a more minimal example:
method Main () { var x := [1]; print (x + x) + (x + x); }
The text was updated successfully, but these errors were encountered:
I'm calling this a bug since it's really hard for users to explain why type inference fails on this exact expression and not the others.
Sorry, something went wrong.
No branches or pull requests
Unless I missed something, this program should be verified fine:
but it results in
Error: the type of this expression is underspecified
.Subtle changes to the program make it verified:
or
EDITED: a more minimal example:
The text was updated successfully, but these errors were encountered: