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 h(uint[]) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (28-34): Storage location must be "memory" for parameter in public function, but none was given.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
contract C {
|
||||
function h() public pure returns(uint[]) {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (50-56): Storage location must be "memory" for parameter in public function, but none was given.
|
||||
Reference in New Issue
Block a user