solidity/test/libsolidity/semanticTests/constants/constant_variables.sol

13 lines
290 B
Solidity

contract Foo {
uint256 constant x = 56;
enum ActionChoices {GoLeft, GoRight, GoStraight, Sit}
ActionChoices constant choices = ActionChoices.GoLeft;
bytes32 constant st = "abc\x00\xff__";
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// constructor() ->