solidity/test/libsolidity/syntaxTests/functionTypes/internal_function_type_to_address.sol

8 lines
216 B
Solidity

contract C {
function f() public returns (address) {
return address(f);
}
}
// ----
// TypeError 9640: (72-82): Explicit type conversion not allowed from "function () returns (address)" to "address".