solidity/test/libsolidity/syntaxTests/parsing/declaring_fixed_and_ufixed_variables.sol
2022-04-01 23:41:18 -05:00

15 lines
670 B
Solidity

contract A {
fixed40x40 storeMe;
function f(ufixed x, fixed32x32 y) public {
ufixed8x8 a;
fixed b;
}
}
// ----
// UnimplementedFeatureError: Fixed point types not implemented.
// Warning 5667: (52-60='ufixed x'): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning 5667: (62-74='fixed32x32 y'): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning 2072: (93-104='ufixed8x8 a'): Unused local variable.
// Warning 2072: (114-121='fixed b'): Unused local variable.
// Warning 2018: (41-128): Function state mutability can be restricted to pure