solidity/test/libsolidity/syntaxTests/types/too_small_negative_numbers.sol

6 lines
229 B
Solidity

contract C {
fixed8x80 a = -1e-100;
}
// ----
// TypeError 4426: (29-36): Type rational_const -1 / 1000...(93 digits omitted)...0000 is not implicitly convertible to expected type fixed8x80, but it can be explicitly converted.