Some changes to "abstract".

This commit is contained in:
chriseth
2019-11-05 13:55:31 +01:00
parent cac2e843e6
commit 5388c919f0
20 changed files with 52 additions and 20 deletions
@@ -1,3 +1,4 @@
library test {
function f(bytes calldata) external;
function f(bytes calldata) external {}
}
// ----
@@ -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,3 +1,3 @@
library test {
function f(bytes storage) external;
function f(bytes storage) external {}
}