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

8 lines
219 B
Solidity

contract C {
function f() public returns (uint) {
return uint(this.f);
}
}
// ----
// TypeError: (69-81): Explicit type conversion not allowed from "function () external returns (uint256)" to "uint256".