solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/276_invalid_types_in_inline_array.sol

9 lines
289 B
Solidity

contract C {
function f() public {
uint[3] x = [45, 'foo', true];
}
}
// ----
// Warning: (47-56): Variable is declared as a storage pointer. Use an explicit "storage" keyword to silence this warning.
// TypeError: (59-76): Unable to deduce common type for array elements.