diff options
author | chriseth <chris@ethereum.org> | 2018-08-09 06:49:04 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-13 20:38:12 +0800 |
commit | bd567a22c9e901d2c7ae73a63f63dc56896b9461 (patch) | |
tree | 12ee1ec678075ee62fc10154a0e1bda64a9898c4 /test/libsolidity/syntaxTests/nameAndTypeResolution | |
parent | a2c754b3fed422b3d8027a5298624bcfed3744a5 (diff) | |
download | dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar.gz dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar.bz2 dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar.lz dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar.xz dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.tar.zst dexon-solidity-bd567a22c9e901d2c7ae73a63f63dc56896b9461.zip |
Defaul data location for type conversions is memory.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution')
2 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/186_invalid_utf8_explicit.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/186_invalid_utf8_explicit.sol index 401c46e2..0f67460f 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/186_invalid_utf8_explicit.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/186_invalid_utf8_explicit.sol @@ -2,4 +2,4 @@ contract C { string s = string("\xa0\x00"); } // ---- -// TypeError: (28-46): Explicit type conversion not allowed from "literal_string (contains invalid UTF-8 sequence at position 0)" to "string storage pointer". +// TypeError: (28-46): Explicit type conversion not allowed from "literal_string (contains invalid UTF-8 sequence at position 0)" to "string memory". diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/482_explicit_literal_to_unspecified_string.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/482_explicit_literal_to_unspecified_string.sol index a83eee72..c44fab55 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/482_explicit_literal_to_unspecified_string.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/482_explicit_literal_to_unspecified_string.sol @@ -4,4 +4,4 @@ contract C { } } // ---- -// TypeError: (52-65): Explicit type conversion not allowed from "literal_string "abc"" to "string storage pointer". +// Warning: (52-65): Statement has no effect. |