mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
463 B
Solidity
15 lines
463 B
Solidity
contract A {
|
|
function f() external {}
|
|
function g() external pure {}
|
|
}
|
|
|
|
contract B {
|
|
function h() external {
|
|
function() external f = A.f;
|
|
function() external pure g = A.g;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 9574: (128-155): Type function A.f() is not implicitly convertible to expected type function () external.
|
|
// TypeError 9574: (165-197): Type function A.g() pure is not implicitly convertible to expected type function () pure external.
|