aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/410_string_literal_not_convertible_to_address_as_assignment.sol
blob: 13bd1a8fb5bfc4a5b60b79e07d65a71186234679 (plain) (tree)
1
2
3
4
5
6





                                                                                                                                                 
// A previous implementation claimed the string would be an address
contract AddrString {
    address public test = "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c";
}
// ----
// TypeError: (116-160): Type literal_string "0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c" is not implicitly convertible to expected type address.