solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/366_invalid_array_as_statement.sol
2020-07-07 12:16:18 +02:00

7 lines
140 B
Solidity

contract test {
struct S { uint x; }
constructor(uint k) { S[k]; }
}
// ----
// TypeError 3940: (69-70): Integer constant expected.