solidity/test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations.sol

13 lines
167 B
Solidity
Raw Normal View History

2020-06-18 15:09:24 +00:00
contract C {
function f() public
2018-05-17 07:04:39 +00:00
{
a = 1 wei;
2020-07-08 17:45:30 +00:00
b = 2 ether;
c = 3 gwei;
2018-05-17 07:04:39 +00:00
}
uint256 a;
uint256 b;
uint256 c;
}
// ----