solidity/test/libsolidity/syntaxTests/dataLocations/unspecified_constructor.sol

7 lines
183 B
Solidity

contract C {
struct S {uint x;}
constructor(S) {}
}
// ----
// TypeError 6651: (48-49): Data location must be "storage" or "memory" for constructor parameter, but none was given.