sway
sway copied to clipboard
ICE: Internal compiler error: Block while has a misplaced terminator.
Forc: latest (0.60.0)
Repro: forc build
contract;
abi TestContract {
fn test_method();
}
impl TestContract for Contract {
fn test_method() {
while (true && true) {}
}
}
Context: the issue is having more than one &&. I've reduced this from a massive codebase. I have not attempted to try different combinations (logical or otherwise)
cc @IGI-111 this is urgent for a known project integration
This issue is fixed with #6146 and the code compiles with Forc 0.61.1.