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

16 lines
284 B
Solidity

contract c {
function f() public
{
a = 1 wei;
b = 2 szabo;
c = 3 finney;
b = 4 ether;
}
uint256 a;
uint256 b;
uint256 c;
uint256 d;
}
// ----
// Warning 2519: (170-179): This declaration shadows an existing declaration.