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

8 lines
216 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
contract C {
function f() public returns (address) {
return address(f);
}
}
2018-03-16 10:33:05 +00:00
// ----
// TypeError 9640: (72-82): Explicit type conversion not allowed from "function () returns (address)" to "address".