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

8 lines
219 B
Solidity
Raw Normal View History

2018-03-16 10:20:06 +00:00
contract C {
function f() public returns (uint) {
return uint(this.f);
}
}
2018-03-16 10:33:05 +00:00
// ----
// TypeError: (69-81): Explicit type conversion not allowed from "function () external returns (uint256)" to "uint256".