Allow using calldata keyword to specify data location

This commit is contained in:
mingchuan
2018-05-30 18:05:55 +08:00
parent 9d5064d04d
commit b7cafcbdf9
25 changed files with 155 additions and 25 deletions
@@ -0,0 +1,5 @@
contract test {
function f(bytes calldata) internal;
}
// ----
// TypeError: (31-36): Variable cannot be declared as "calldata" (remove the "calldata" keyword).
@@ -0,0 +1,4 @@
contract test {
function f(bytes memory) internal;
}
// ----
@@ -0,0 +1,4 @@
contract test {
function f(bytes storage) internal;
}
// ----