These two lines compile:
uint8[5] foo = [0,0,0,0,0];
int[5] foo = [1,0,0,0,0];
My question is, why do the following two lines not compile and how can I fix them?
int[5] foo = [1,-1,0,0,0];
Error: Unable to deduce common type for array elements
int8[5] foo = [0,0,0,0,0];
Error: Type uint8[5] memory is not implicitly convertible to expected type int8[5] storage ref.
I assume inlining numbers only works with uint?
Solidity Version 0.3.2-9e36bdda