You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When including selfdestruct IR, solang does not generate a "not implemented" error, but instead produces other errors. It seems to treat the "not implemented" case as an "entered unreachable code".
solang compile a.sol --target solana
contractTest {
function test(inta, uintb, uintc) publicreturns(int) {
if (c <45) {
b =1;
} elseif (c >=45&& c <64) {
b =1;
} elseif (c >=64&& c <85) {
assembly {
{
selfdestruct(true)
}
}
b =1;
}
return0;
}
}
thread 'main' panicked at src/emit/expression.rs:2415:14:
internal error: entered unreachable code
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
When including
selfdestruct
IR,solang
does not generate a "not implemented" error, but instead produces other errors. It seems to treat the "not implemented" case as an "entered unreachable code".solang compile a.sol --target solana
The text was updated successfully, but these errors were encountered: