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.4.0.sol

38 lines
556 B

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