mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update test to correct source location for nameless parameters
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user