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.
38 lines
556 B
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;
|
|
}
|
|
}
|
|
}
|
|
|