aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/411_string_literal_not_convertible_to_address_as_return_value.sol
blob: d6b7b987e5cd312c81dfe7e1bfc1117cbaa57737 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                                                                                 
// A previous implementation claimed the string would be an address
contract AddrString {
    function f() public returns (address) {
        return "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c";
   }
}
// ----
// TypeError: (149-193): Return argument type literal_string "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c" is not implicitly convertible to expected type (type of first return variable) address.