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

12 lines
266 B
Solidity
Raw Normal View History

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() ->