-
Notifications
You must be signed in to change notification settings - Fork 19
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
Incorrect warning: nonexistent __x variable is shadowed #476
Comments
is verbatim the warning, not a placeholder I inserted. |
@brainiacfive this is happening in a (currently) private contract, right? if you can't provide a minimal example right now you could maybe invite @ghallak and/or @radrow to the repo to check with the contract where the compiler currently produces this warning |
I think the compiler uses the variable |
is a small example capturing the same problem - the compiled code is correct in this case, but that might be luck (cc @radrow and @ghallak ) |
Much appreciated. I saw more warnings using Do you know which variable in your example is the first use of |
It's a bug caused by running code analysis on desugared code. Nothing to worry about. We'll take a look and fix it soon. |
If you are worried though, or if it may impact something serious, you can use |
Thank you, will do! |
The asm code is fascinating but not something to crack on the fly. Can you @radrow @hanssv share what sugar is causing the use of |
Tried with replacing
with
On @hanssv recommendation, but so far no luck. |
You need to change all five of them, and indeed it does workaround the problem. |
I think the concrete issue has been worked around - as for the compiler, I think using |
I get a compiler warning
I am not using __x in my source. Tried to eliminate the String include from it, only Option left, but it throws the same warning; so it would not be include conflict. No other includes.
Looks like a compiler issue to me. Will provided a minimal source example later. Maybe you have an idea already from this stub notice.
The text was updated successfully, but these errors were encountered: