solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/319_invalid_array_declaration_with_signed_fixed_type.sol

8 lines
183 B
Solidity
Raw Normal View History

contract test {
function f() public {
uint[fixed(3.5)] a; a;
}
}
// ----
// TypeError: (55-65): Invalid array length, expected integer literal or constant expression.