solidity/test/libsolidity/syntaxTests/constructor/calldata_constructor_args.sol
2022-04-01 23:41:18 -05:00

6 lines
209 B
Solidity

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