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