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

7 lines
187 B
Solidity

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