solidity/test/libsolidity/syntaxTests/parsing/declaring_fixed_literal_variables.sol
2021-08-04 15:27:44 -05:00

6 lines
230 B
Solidity

contract A {
fixed128x1 pi = 3.14;
}
// ----
// TypeError 2326: (33-37): Type rational_const 157 / 50 is not implicitly convertible to expected type fixed128x1. Try converting to type ufixed16x2 or use an explicit conversion.