aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing
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/parsing
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/parsing')
-rw-r--r--test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol b/test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol
index 2b35ffda..4c1f96e6 100644
--- a/test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol
+++ b/test/libsolidity/syntaxTests/parsing/arrays_in_expressions.sol
@@ -1,8 +1,6 @@
contract c {
- function f() public { c[10] a = 7; uint8[10 * 2] x; }
+ function f() public { c[10] storage a = 7; uint8[10 * 2] storage x; }
}
// ----
-// Warning: (39-46): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
-// Warning: (52-67): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
-// TypeError: (39-50): Type int_const 7 is not implicitly convertible to expected type contract c[10] storage pointer.
-// DeclarationError: (52-67): Uninitialized storage pointer. Did you mean '<type> memory x'?
+// TypeError: (39-58): Type int_const 7 is not implicitly convertible to expected type contract c[10] storage pointer.
+// DeclarationError: (60-83): Uninitialized storage pointer.