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/yul-state-constant-access.sol

25 lines
280 B

contract A{
uint private constant a = 10;
function f() public returns(uint){
return a;
}
function f2() public returns(uint){
uint ret;
assembly{
ret := a
}
}
function f3() public returns(uint){
uint ret;
unchecked{
ret = a;
}
}
}
contract B is A{
}