solidity/test/libsolidity/semanticTests/various/assignment_to_const_var_involving_expression.sol

13 lines
184 B
Solidity
Raw Normal View History

contract C {
uint256 constant x = 0x123 + 0x456;
function f() public returns (uint256) {
return x + 1;
}
}
2020-04-20 21:05:14 +00:00
// ====
// compileViaYul: also
// ----
// f() -> 0x57a