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

8 lines
173 B
Solidity
Raw Normal View History

contract C {
function f() public {
uint[3] memory x = [45, 'foo', true];
}
}
// ----
// TypeError: (66-83): Unable to deduce common type for array elements.