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