mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
typeCheckAbiEncodeCallFunction should type check the arguments on functionPointerType->asExternallyCallableFunction instead of teh plain function type
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
interface testInterface {
|
||||
function A(address payable) external;
|
||||
}
|
||||
|
||||
contract testContract {
|
||||
function main() external view {
|
||||
abi.encodeCall(testInterface.A, (address(0)));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 5407: (171-183): Cannot implicitly convert component at position 0 from "address" to "address payable".
|
||||
Reference in New Issue
Block a user