mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
+1
-1
@@ -2,4 +2,4 @@ contract test {
|
||||
function f(bytes calldata) public;
|
||||
}
|
||||
// ----
|
||||
// TypeError: (31-36): Location has to be memory for publicly visible functions (remove the "storage" or "calldata" keyword).
|
||||
// TypeError: (31-36): 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): Location has to be memory for publicly visible functions (remove the "storage" or "calldata" keyword).
|
||||
// TypeError: (31-36): Data location must be "memory" for parameter in function, but "storage" was given.
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ contract C {
|
||||
function h(uint[]) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (28-34): Storage location must be "memory" for parameter in public function, but none was given.
|
||||
// TypeError: (28-34): Data location must be "memory" for parameter in function, but none was given.
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ contract C {
|
||||
function h() public pure returns(uint[]) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (50-56): Storage location must be "memory" for parameter in public function, but none was given.
|
||||
// TypeError: (50-56): Data location must be "memory" for return parameter in function, but none was given.
|
||||
|
||||
Reference in New Issue
Block a user