mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some changes to "abstract".
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
||||
library test {
|
||||
function f(bytes calldata) external;
|
||||
function f(bytes calldata) external {}
|
||||
}
|
||||
// ----
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
library test {
|
||||
function f(bytes memory) external;
|
||||
function f(bytes memory) external {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (30-42): Data location must be "storage" or "calldata" for parameter in external function, but "memory" was given.
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
library test {
|
||||
function f(bytes storage) external;
|
||||
function f(bytes storage) external {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user