mirror of https://github.com/crytic/slither
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.
39 lines
556 B
39 lines
556 B
4 years ago
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|