mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
409 B
Solidity
9 lines
409 B
Solidity
// A previous implementation claimed the string would be an address
|
|
contract AddrString {
|
|
function f() public returns (address) {
|
|
return "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c";
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 6359: (149-193): Return argument type literal_string "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c" is not implicitly convertible to expected type (type of first return variable) address.
|