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