mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
New test cases.
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function f(uint[]) private pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (28-34): Storage location must be "storage" or "memory" for parameter in private function, but none was given.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function f() private pure returns(uint[]) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (51-57): Storage location must be "storage" or "memory" for parameter in private function, but none was given.
|
||||
Reference in New Issue
Block a user