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
module 0xCAFE::Module0 { public fun f() { *( if (true) { if (true) { if (true) { &(0) } else { if (true) { &(0) } else { &(0) } } } else { &(0) } } else { if (true) { if (true) { if (true) { &(0) } else { &(0) } } else { if (true) { &(0) } else { &(0) } } } else { if (true) { if (true) { &(0) } else { &(0) } } else { &(0) } } } ); } }
V1 can compile this fine. V2 will give:
error: cannot drop value which is still borrowed ┌─ ~/debug_package/sources/MoveSmith.move:3:13 │ 3 │ ╭ *( 4 │ │ if (true) { 5 │ │ if (true) { 6 │ │ if (true) { &(0) } · │ 27 │ │ } 28 │ │ ); │ ╰─────────────^ dropped here
Removing any individual if-else will make the error disappear, but I haven't tried removing combinations of multiple ones.
if-else
The text was updated successfully, but these errors were encountered:
A similar input can cause V1 to crash #14095 (comment)
Sorry, something went wrong.
No branches or pull requests
🐛 Bug
V1 can compile this fine. V2 will give:
Removing any individual
if-else
will make the error disappear, but I haven't tried removing combinations of multiple ones.The text was updated successfully, but these errors were encountered: