solidity/test/libsolidity/semanticTests/constants/constant_variables.sol
2020-03-19 14:42:25 +01:00

12 lines
266 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
// ----
// constructor() ->