solidity/test/libsolidity/syntaxTests/constructor/calldata_constructor_args.sol

6 lines
191 B
Solidity

contract C {
constructor(uint[] calldata) public {}
}
// ----
// TypeError 6651: (29-44): Data location must be "storage" or "memory" for constructor parameter, but "calldata" was given.