solidity/test/libsolidity/semanticTests/fixedPoint/state_variables.sol
Alex Beregszaszi 698bfb3cb9 Add more tests
2021-08-16 12:14:21 +02:00

13 lines
259 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);
}
}
// ----
// z() ->
// f() ->