Fix error message about accessing storage pointers.

This commit is contained in:
chriseth
2019-09-24 10:52:02 +02:00
parent c4208a6ab8
commit ca21659749
18 changed files with 33 additions and 33 deletions
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError: (92-116): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (92-116): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
@@ -5,4 +5,4 @@ contract C {
function f() m1(b) m2(b = s) internal view returns (uint[] storage b) {}
}
// ----
// TypeError: (129-130): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (129-130): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
@@ -10,4 +10,4 @@ contract C {
}
}
// ----
// TypeError: (120-121): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (120-121): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
@@ -10,4 +10,4 @@ contract C {
}
}
// ----
// TypeError: (120-121): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (120-121): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError: (94-95): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (94-95): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// TypeError: (109-110): This variable is of storage pointer type and can be accessed without prior assignment.
// TypeError: (109-110): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.