mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow using calldata keyword to specify data location
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
contract test {
|
||||
function f(bytes calldata) internal;
|
||||
}
|
||||
// ----
|
||||
// TypeError: (31-36): Variable cannot be declared as "calldata" (remove the "calldata" keyword).
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
contract test {
|
||||
function f(bytes memory) internal;
|
||||
}
|
||||
// ----
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
contract test {
|
||||
function f(bytes storage) internal;
|
||||
}
|
||||
// ----
|
||||
Reference in New Issue
Block a user