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