diff --git a/test/libsolidity/syntaxTests/constants/mod_div_rational.sol b/test/libsolidity/syntaxTests/constants/mod_div_rational.sol index d983fa1ee..86b3d638c 100644 --- a/test/libsolidity/syntaxTests/constants/mod_div_rational.sol +++ b/test/libsolidity/syntaxTests/constants/mod_div_rational.sol @@ -5,4 +5,3 @@ contract C { fixed a4 = 0 / -0.123; } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/inline_arrays/inline_array_fixed_types.sol b/test/libsolidity/syntaxTests/inline_arrays/inline_array_fixed_types.sol index 56a4d0e20..109ae8540 100644 --- a/test/libsolidity/syntaxTests/inline_arrays/inline_array_fixed_types.sol +++ b/test/libsolidity/syntaxTests/inline_arrays/inline_array_fixed_types.sol @@ -1,9 +1,7 @@ contract test { - function f() public { + function f() public pure { fixed[3] memory a = [fixed(3.5), fixed(-4.25), fixed(967.125)]; + a; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2072: (50-67): Unused local variable. -// Warning 2018: (20-119): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/inline_arrays/inline_array_rationals.sol b/test/libsolidity/syntaxTests/inline_arrays/inline_array_rationals.sol index 78aa35de7..509ac266f 100644 --- a/test/libsolidity/syntaxTests/inline_arrays/inline_array_rationals.sol +++ b/test/libsolidity/syntaxTests/inline_arrays/inline_array_rationals.sol @@ -1,9 +1,7 @@ contract test { - function f() public { + function f() public pure { ufixed128x3[4] memory a = [ufixed128x3(3.5), 4.125, 2.5, 4.0]; + a; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2072: (50-73): Unused local variable. -// Warning 2018: (20-118): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/303_fixed_type_int_conversion.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/303_fixed_type_int_conversion.sol index ba1eb8069..33ef77138 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/303_fixed_type_int_conversion.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/303_fixed_type_int_conversion.sol @@ -1,5 +1,5 @@ contract test { - function f() public { + function f() public pure { uint64 a = 3; int64 b = 4; fixed c = b; @@ -8,5 +8,3 @@ contract test { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2018: (20-147): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/304_fixed_type_rational_int_conversion.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/304_fixed_type_rational_int_conversion.sol index 81ad7dbe8..d4073dab3 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/304_fixed_type_rational_int_conversion.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/304_fixed_type_rational_int_conversion.sol @@ -1,10 +1,8 @@ contract test { - function f() public { + function f() public pure { fixed c = 3; ufixed d = 4; c; d; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2018: (20-104): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/305_fixed_type_rational_fraction_conversion.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/305_fixed_type_rational_fraction_conversion.sol index b7642e16a..f22ec5f89 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/305_fixed_type_rational_fraction_conversion.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/305_fixed_type_rational_fraction_conversion.sol @@ -1,10 +1,8 @@ contract test { - function f() public { + function f() public pure { fixed a = 4.5; ufixed d = 2.5; a; d; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2018: (20-108): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/307_rational_unary_minus_operation.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/307_rational_unary_minus_operation.sol index b8b2f12b5..a50ffaa7e 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/307_rational_unary_minus_operation.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/307_rational_unary_minus_operation.sol @@ -6,4 +6,3 @@ contract test { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/312_leading_zero_rationals_convert.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/312_leading_zero_rationals_convert.sol index 082514ebc..f12c4486c 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/312_leading_zero_rationals_convert.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/312_leading_zero_rationals_convert.sol @@ -8,4 +8,3 @@ contract A { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/314_fixed_type_zero_handling.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/314_fixed_type_zero_handling.sol index 1d1e62cf3..7c4668dc0 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/314_fixed_type_zero_handling.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/314_fixed_type_zero_handling.sol @@ -1,9 +1,7 @@ contract test { - function f() public { + function f() public pure { fixed16x2 a = 0; a; ufixed32x1 b = 0; b; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2018: (20-104): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/317_fixed_type_valid_explicit_conversions.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/317_fixed_type_valid_explicit_conversions.sol index 37ffe3d74..a7df1035a 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/317_fixed_type_valid_explicit_conversions.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/317_fixed_type_valid_explicit_conversions.sol @@ -1,10 +1,8 @@ contract test { - function f() public { + function f() public pure { ufixed256x77 a = ufixed256x77(1/3); a; ufixed248x77 b = ufixed248x77(1/3); b; ufixed8x1 c = ufixed8x1(1/3); c; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2018: (20-182): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/323_mapping_with_fixed_literal.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/323_mapping_with_fixed_literal.sol index 20ebcb1fe..0f39f4da8 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/323_mapping_with_fixed_literal.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/323_mapping_with_fixed_literal.sol @@ -5,4 +5,3 @@ contract test { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/324_fixed_points_inside_structs.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/324_fixed_points_inside_structs.sol index 24a090127..f0026c893 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/324_fixed_points_inside_structs.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/324_fixed_points_inside_structs.sol @@ -6,4 +6,3 @@ contract test { myStruct a = myStruct(3.125, 3); } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/328_rational_to_fixed_literal_expression.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/328_rational_to_fixed_literal_expression.sol index 6f6c786f7..b1276a707 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/328_rational_to_fixed_literal_expression.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/328_rational_to_fixed_literal_expression.sol @@ -1,16 +1,13 @@ contract test { - function f() public { + function f() public pure { ufixed64x8 a = 3.5 * 3; ufixed64x8 b = 4 - 2.5; ufixed64x8 c = 11 / 4; ufixed240x5 d = 599 + 0.21875; ufixed256x18 e = ufixed256x18(35.245 % 12.9); - ufixed256x18 f = ufixed256x18(1.2 % 2); + ufixed256x18 f1 = ufixed256x18(1.2 % 2); fixed g = 2 ** -2; - a; b; c; d; e; f; g; + a; b; c; d; e; f1; g; } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. -// Warning 2519: (238-252): This declaration shadows an existing declaration. -// Warning 2018: (20-339): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/parsing/declaring_fixed_and_ufixed_variables.sol b/test/libsolidity/syntaxTests/parsing/declaring_fixed_and_ufixed_variables.sol index e34522540..93bc7e524 100644 --- a/test/libsolidity/syntaxTests/parsing/declaring_fixed_and_ufixed_variables.sol +++ b/test/libsolidity/syntaxTests/parsing/declaring_fixed_and_ufixed_variables.sol @@ -1,14 +1,9 @@ contract A { fixed40x40 storeMe; - function f(ufixed x, fixed32x32 y) public { + function f(ufixed, fixed32x32) public pure { ufixed8x8 a; fixed b; + a; b; } } // ---- -// UnimplementedFeatureError: Fixed point types not implemented. -// Warning 5667: (52-60): Unused function parameter. Remove or comment out the variable name to silence this warning. -// Warning 5667: (62-74): Unused function parameter. Remove or comment out the variable name to silence this warning. -// Warning 2072: (93-104): Unused local variable. -// Warning 2072: (114-121): Unused local variable. -// Warning 2018: (41-128): Function state mutability can be restricted to pure diff --git a/test/libsolidity/syntaxTests/parsing/lexer_numbers_with_underscores_fixed.sol b/test/libsolidity/syntaxTests/parsing/lexer_numbers_with_underscores_fixed.sol index 00ed4f654..4910ee829 100644 --- a/test/libsolidity/syntaxTests/parsing/lexer_numbers_with_underscores_fixed.sol +++ b/test/libsolidity/syntaxTests/parsing/lexer_numbers_with_underscores_fixed.sol @@ -7,4 +7,3 @@ contract C { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType. diff --git a/test/libsolidity/syntaxTests/types/rational_number_literal_to_fixed_implicit.sol b/test/libsolidity/syntaxTests/types/rational_number_literal_to_fixed_implicit.sol index 5bceec609..ca50e03be 100644 --- a/test/libsolidity/syntaxTests/types/rational_number_literal_to_fixed_implicit.sol +++ b/test/libsolidity/syntaxTests/types/rational_number_literal_to_fixed_implicit.sol @@ -13,4 +13,3 @@ contract C { } } // ---- -// UnimplementedFeatureError: Not yet implemented - FixedPointType.