solidity/test/libsolidity/syntaxTests/functionTypes/internal_function_type_to_address.sol
2018-04-11 22:00:04 +02:00

8 lines
211 B
Solidity

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