solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/192_positive_integers_to_signed_out_of_bound.sol

6 lines
146 B
Solidity

contract test {
int8 public j = 128;
}
// ----
// TypeError: (36-39): Type int_const 128 is not implicitly convertible to expected type int8.