aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-07-11 19:23:33 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-12 18:54:42 +0800
commit8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2 (patch)
tree994b5301030fad5985f1a347a1603875aaca523b /test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol
parenta1f54f4e40811e526541f3a54f6a19dd42c8e688 (diff)
downloaddexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.gz
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.bz2
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.lz
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.xz
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.tar.zst
dexon-solidity-8b4b8bdbae2f67445178ebe3b12d23bb4f46f9d2.zip
Update test wrt requiring storage locations.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol')
-rw-r--r--test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol
index a586dc80..be57144e 100644
--- a/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol
+++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/232_literal_string_to_storage_pointer.sol
@@ -1,6 +1,5 @@
contract C {
- function f() public { string x = "abc"; }
+ function f() public { string storage x = "abc"; }
}
// ----
-// Warning: (39-47): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
-// TypeError: (39-55): Type literal_string "abc" is not implicitly convertible to expected type string storage pointer.
+// TypeError: (39-63): Type literal_string "abc" is not implicitly convertible to expected type string storage pointer.