Static Analyzer for Solidity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
slither/tests/ast-parsing/variabledeclaration-0.5.0.sol

19 lines
467 B

4 years ago
contract C {
function f() public {
uint8 explicitUint8 = 0;
uint16 explicitUint16 = 256;
uint[][][] memory uintArr;
(uint tuplea1, uint tuplea2) = (1, 2);
(uint tupleb1, , uint tupleb3) = (1, 2, 3);
(, , , , , uint tuplec6) = (1, 2, 3, 4, 5, 6);
address ternaryInit = msg.sender.balance > 0 ? msg.sender : block.coinbase;
uint overwritten;
uint overwritten1 = overwritten = 10;
}
}