solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/366_invalid_array_as_statement.sol

7 lines
147 B
Solidity
Raw Normal View History

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