mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test updates.
This commit is contained in:
+1
-1
@@ -2,4 +2,4 @@ contract C {
|
||||
function i() external pure returns(uint[]) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (52-58): Data location must be "memory" for return parameter in function, but none was given.
|
||||
// TypeError: (52-58): Data location must be "memory" or "calldata" for return parameter in function, but none was given.
|
||||
|
||||
+2
-1
@@ -2,4 +2,5 @@ contract test {
|
||||
function f(bytes memory) external;
|
||||
}
|
||||
// ----
|
||||
// TypeError: (31-43): Data location must be "calldata" for parameter in external function, but "memory" was given.
|
||||
// TypeError: (0-56): Contract "test" should be marked as abstract.
|
||||
// TypeError: (20-54): Functions without implementation must be marked virtual.
|
||||
|
||||
+1
-1
@@ -2,4 +2,4 @@ contract test {
|
||||
function f(bytes storage) external;
|
||||
}
|
||||
// ----
|
||||
// TypeError: (31-44): Data location must be "calldata" for parameter in external function, but "storage" was given.
|
||||
// TypeError: (31-44): Data location must be "memory" or "calldata" for parameter in external function, but "storage" was given.
|
||||
|
||||
Reference in New Issue
Block a user