mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
289 B
Solidity
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.
|