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
for(int i=0; i<10; ++i){ struct A{int x;} A f(A a, int y){ a.x+=i; return a; } A a; A b=f(a,1); }
Error message:
A b=f(a,1); ^ a.asy: 5.7: cannot cast 'A' to 'A' success
Why is the f function not redefined anyway?
f
The text was updated successfully, but these errors were encountered:
For the record, here's a more minimal example:
while(true) { struct A { int x; } A f(A a){ return a; } A a; a=f(a); }
Sorry, something went wrong.
No branches or pull requests
Error message:
Why is the
f
function not redefined anyway?The text was updated successfully, but these errors were encountered: