solidity/test/libsolidity/semanticTests/constants/simple_constant_variables_test.sol
2020-05-05 17:07:55 +02:00

13 lines
176 B
Solidity

contract Foo {
function getX() public returns (uint256 r) {
return x;
}
uint256 constant x = 56;
}
// ====
// compileViaYul: also
// ----
// getX() -> 56