//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.7.1; contract SimpleStore { enum Stage { None, Queued, Approval, Referendum, Execution, Expiration } function gtApproval(Stage stage) public view returns (bool) { return stage > Stage.Approval; } function isExpired(bool approved, Stage stage) public view returns (bool) { return (/*stage > Stage.Approval &&*/ !approved); } function wtfBool() public view returns (bool) { bool b = false; return !b; } function banana() public view returns (Stage) { Stage stage = Stage.Referendum; return isExpired(false, stage) ? Stage.Expiration : stage; } function wtfStage(Stage stage) public view returns (Stage) { return stage; } }
0.7.1