blob: ef87ac558e30fceb4bc5e8fcf64fab9867bac3d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
contract C {
function f(bytes32 x) public pure returns (address payable) {
return address(x);
}
}
// ----
// TypeError: (94-104): Explicit type conversion not allowed from "bytes32" to "address".
// TypeError: (94-104): Return argument type address is not implicitly convertible to expected type (type of first return variable) address payable.
|