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
foo_int -> int?: return 499 foo_string -> string?: return "hello" main: while x := foo_int: x = foo_string while x/any := foo_int: x = foo_string
In the first loop it should infer the type as int and then complain about the foo_string assignment. In the second loop it shouldn't
int
foo_string
The text was updated successfully, but these errors were encountered:
Attempt to fix missing type inference for loop vars.
61c0392
Doesn't work because it loses track of `while foo/any := ...:` See #1815
This has also implications for warnings that loops are infinite:
while x/int := foo: // <= should warn that the condition is always true. ...
Sorry, something went wrong.
No branches or pull requests
In the first loop it should infer the type as
int
and then complain about thefoo_string
assignment.In the second loop it shouldn't
The text was updated successfully, but these errors were encountered: