Constructors cannot have calldata parameters.

This commit is contained in:
chriseth
2020-07-06 16:52:51 +02:00
parent 375cb09341
commit f372ba6fea
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.