solidity/test/libsolidity/semanticTests/fixedPoint/state_variables.sol
Alex Beregszaszi 0fe7d787f3 Add more tests
2021-10-06 13:56:25 +02:00

15 lines
402 B
Solidity

contract C {
fixed x = 1.7;
fixed immutable y = -1.8;
fixed public z = - 9.3;
fixed constant w = -3.4;
function f() public view returns (fixed, fixed, fixed, fixed) {
return (x, y, this.z(), w);
}
}
// ====
// compileViaYul: also
// ----
// z() -> -9.300000000000000000
// f() -> 1.700000000000000000, -1.800000000000000000, -9.300000000000000000, -3.400000000000000000