Update tests.

This commit is contained in:
chriseth
2018-08-14 18:53:06 +02:00
parent 16de7a0493
commit 13905a2094
62 changed files with 179 additions and 113 deletions
@@ -2,4 +2,4 @@ contract test {
function f(bytes calldata) internal;
}
// ----
// TypeError: (31-36): Variable cannot be declared as "calldata" (remove the "calldata" keyword).
// TypeError: (31-36): Data location must be "storage" or "memory" for parameter in function, but "calldata" was given.
@@ -2,4 +2,4 @@ contract C {
function g(uint[]) internal pure {}
}
// ----
// TypeError: (28-34): Storage location must be "storage" or "memory" for parameter in internal function, but none was given.
// TypeError: (28-34): Data location must be "storage" or "memory" for parameter in function, but none was given.
@@ -2,4 +2,4 @@ contract C {
function g() internal pure returns(uint[]) {}
}
// ----
// TypeError: (52-58): Storage location must be "storage" or "memory" for parameter in internal function, but none was given.
// TypeError: (52-58): Data location must be "storage" or "memory" for return parameter in function, but none was given.