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

17 lines
242 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;
b = 2 szabo;
c = 3 finney;
2020-06-18 15:09:24 +00:00
d = 4 ether;
e = 5 gwei;
2018-05-17 07:04:39 +00:00
}
uint256 a;
uint256 b;
uint256 c;
uint256 d;
2020-06-18 15:09:24 +00:00
uint256 e;
2018-05-17 07:04:39 +00:00
}
// ----