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/scope-0.5.0.sol

39 lines
556 B

contract Scope{
function nested_scope() public{
uint a;
{
uint a;
{
uint a;
}
}
}
function if_scope() public{
if(true)
{
uint a;
}
else{
uint a;
}
}
function while_scope() public{
uint a;
while(true)
{
uint a;
}
}
function for_scope() public{
uint a;
for(uint a; a < 10; a++)
{
uint a;
}
}
}