aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/declaring_fixed_literal_variables.sol
blob: b0d938a016dae2fdf393d7829ce04fbb2c3616a1 (plain) (blame)
1
2
3
4
5
contract A {
    fixed40x40 pi = 3.14;
}
// ----
// TypeError: (33-37): Type rational_const 157 / 50 is not implicitly convertible to expected type fixed40x40. Try converting to type ufixed16x2 or use an explicit conversion.