Fix internal error for invalid data location in constructor.

This commit is contained in:
chriseth
2020-07-27 15:00:17 +02:00
parent 56e4e9f0af
commit f24097c38d
3 changed files with 10 additions and 2 deletions
@@ -2,4 +2,4 @@ contract C {
constructor(uint[] calldata) public {}
}
// ----
// TypeError 6651: (29-44): Data location must be "storage" or "memory" for parameter in function, but "calldata" was given.
// TypeError 6651: (29-44): Data location must be "storage" or "memory" for constructor parameter, but "calldata" was given.