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

13 lines
290 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__";
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// constructor() ->