solidity/test/libsolidity/semanticTests/literals/ether.sol

11 lines
191 B
Solidity

contract C {
uint constant x = 1 ether;
function f() public view returns(uint) { return x; }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 1000000000000000000