mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
361 B
Solidity
9 lines
361 B
Solidity
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.
|