Merge pull request #9319 from ethereum/noCalldataForConstructor

Constructors cannot have calldata parameters.
This commit is contained in:
chriseth
2020-07-06 17:58:23 +02:00
committed by GitHub
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,5 @@
contract C {
constructor(uint[] calldata) public {}
}
// ----
// TypeError 6651: (29-44): Data location must be "memory" for parameter in function, but "calldata" was given.