mirror of https://github.com/crytic/slither
Fix #2266 where the type of functions when used as RValues was not properly printed.
parent
118c916b35
commit
114dc2eeca
@ -0,0 +1,13 @@ |
||||
pragma solidity ^0.8.0; |
||||
|
||||
contract A { |
||||
function add(uint256 a, uint256 b) public returns (uint256) { |
||||
return a + b; |
||||
} |
||||
} |
||||
|
||||
contract B is A { |
||||
function assignFunction() public { |
||||
function(uint256, uint256) returns (uint256) myFunction = super.add; |
||||
} |
||||
} |
Loading…
Reference in new issue