Update test to correct source location for nameless parameters

This commit is contained in:
bakaoh
2018-08-31 09:54:11 +07:00
parent c458f5988b
commit 3d7b0d691f
39 changed files with 46 additions and 45 deletions
@@ -2,4 +2,4 @@ contract test {
function f(bytes calldata) public;
}
// ----
// TypeError: (31-36): Data location must be "memory" for parameter in function, but "calldata" was given.
// TypeError: (31-45): Data location must be "memory" for parameter in function, but "calldata" was given.
@@ -2,4 +2,4 @@ contract test {
function f(bytes storage) public;
}
// ----
// TypeError: (31-36): Data location must be "memory" for parameter in function, but "storage" was given.
// TypeError: (31-44): Data location must be "memory" for parameter in function, but "storage" was given.