Update test wrt requiring storage locations.

This commit is contained in:
Daniel Kirchner
2018-07-12 12:54:42 +02:00
parent a1f54f4e40
commit 8b4b8bdbae
16 changed files with 41 additions and 56 deletions
@@ -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.