New test cases.

This commit is contained in:
mingchuan
2018-08-14 18:53:06 +02:00
committed by chriseth
parent b000a022f2
commit 16de7a0493
20 changed files with 126 additions and 0 deletions
@@ -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.
@@ -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.