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

6 lines
224 B
Solidity
Raw Normal View History

contract C {
fixed8x80 a = -1e-100;
}
// ----
// TypeError: (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.