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

7 lines
140 B
Solidity
Raw Normal View History

contract test {
struct S { uint x; }
2020-06-23 12:14:24 +00:00
constructor(uint k) { S[k]; }
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 3940: (69-70): Integer constant expected.