Skip to content

Commit d67734d

Browse files
committed
Fix error IDs.
1 parent 1441b97 commit d67734d

25 files changed

+42
-42
lines changed

test/libsolidity/smtCheckerTests/special/many.sol

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ contract C
1515
}
1616
}
1717
// ----
18-
// Warning: (79-115): Assertion violation happens here
19-
// Warning: (119-161): Assertion violation happens here
20-
// Warning: (165-204): Assertion violation happens here
21-
// Warning: (208-240): Assertion violation happens here
22-
// Warning: (244-275): Assertion violation happens here
23-
// Warning: (311-316): Overflow (resulting value larger than 2**256 - 1) happens here
24-
// Warning: (304-332): Assertion violation happens here
25-
// Warning: (336-364): Assertion violation happens here
26-
// Warning: (368-391): Assertion violation happens here
18+
// Warning 4661: (79-115): Assertion violation happens here
19+
// Warning 4661: (119-161): Assertion violation happens here
20+
// Warning 4661: (165-204): Assertion violation happens here
21+
// Warning 4661: (208-240): Assertion violation happens here
22+
// Warning 4661: (244-275): Assertion violation happens here
23+
// Warning 2661: (311-316): Overflow (resulting value larger than 2**256 - 1) happens here
24+
// Warning 4661: (304-332): Assertion violation happens here
25+
// Warning 4661: (336-364): Assertion violation happens here
26+
// Warning 4661: (368-391): Assertion violation happens here

test/libsolidity/smtCheckerTests/types/function_type_members.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ contract C {
66
}
77
}
88
// ----
9-
// Warning: (108-118): Assertion checker does not yet support this expression.
9+
// Warning 7650: (108-118): Assertion checker does not yet support this expression.

test/libsolidity/syntaxTests/functionCalls/calloptions_repeated.sol

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ contract C {
1111
// ====
1212
// EVMVersion: >=constantinople
1313
// ----
14-
// TypeError: (78-110): Option "gas" has already been set.
15-
// TypeError: (120-154): Option "gas" has already been set.
16-
// TypeError: (164-198): Option "value" has already been set.
17-
// TypeError: (208-249): Option "value" has already been set.
18-
// TypeError: (208-249): Option "gas" has already been set.
19-
// TypeError: (259-286): Option "salt" has already been set.
14+
// TypeError 9886: (78-110): Option "gas" has already been set.
15+
// TypeError 9886: (120-154): Option "gas" has already been set.
16+
// TypeError 9886: (164-198): Option "value" has already been set.
17+
// TypeError 9886: (208-249): Option "value" has already been set.
18+
// TypeError 9886: (208-249): Option "gas" has already been set.
19+
// TypeError 9886: (259-286): Option "salt" has already been set.

test/libsolidity/syntaxTests/functionTypes/call_value_on_non_payable_function_type.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contract C {
55
}
66
}
77
// ----
8-
// TypeError: (94-105): Cannot set option "value" on a non-payable function type.
8+
// TypeError 7006: (94-105): Cannot set option "value" on a non-payable function type.

test/libsolidity/syntaxTests/functionTypes/error_deprecate_gas_function.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contract C {
55
}
66
}
77
// ----
8-
// TypeError: (102-107): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
8+
// TypeError 1621: (102-107): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.

test/libsolidity/syntaxTests/functionTypes/error_deprecate_value_constructor.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ contract D {
88
}
99
}
1010
// ----
11-
// TypeError: (122-135): Using ".value(...)" is deprecated. Use "{value: ...}" instead.
11+
// TypeError 1621: (122-135): Using ".value(...)" is deprecated. Use "{value: ...}" instead.

test/libsolidity/syntaxTests/functionTypes/error_deprecate_value_function.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contract C {
55
}
66
}
77
// ----
8-
// TypeError: (102-109): Using ".value(...)" is deprecated. Use "{value: ...}" instead.
8+
// TypeError 1621: (102-109): Using ".value(...)" is deprecated. Use "{value: ...}" instead.

test/libsolidity/syntaxTests/globalFunctions/now_deprecate.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contract C {
44
}
55
}
66
// ----
7-
// TypeError: (38-41): "now" has been deprecated. Use "block.timestamp" instead.
7+
// TypeError 7359: (38-41): "now" has been deprecated. Use "block.timestamp" instead.

test/libsolidity/syntaxTests/globalFunctions/now_override.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ contract C {
55
}
66
}
77
// ----
8-
// Warning: (43-51): This declaration shadows a builtin symbol.
8+
// Warning 2319: (43-51): This declaration shadows a builtin symbol.

test/libsolidity/syntaxTests/inheritance/virtual/library_err.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ library L {
22
function f() internal pure virtual returns (uint) { return 0; }
33
}
44
// ----
5-
// TypeError: (16-79): Library functions cannot be "virtual".
5+
// TypeError 7801: (16-79): Library functions cannot be "virtual".

test/libsolidity/syntaxTests/inlineAssembly/pc.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ contract C {
66
}
77
}
88
// ----
9-
// SyntaxError: (61-63): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.
9+
// SyntaxError 2450: (61-63): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.

test/libsolidity/syntaxTests/missing_functions_duplicate_bug.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ contract Voting is Ownable {
2323
}
2424
}
2525
// ----
26-
// Warning: (299-315): Unused function parameter. Remove or comment out the variable name to silence this warning.
26+
// Warning 5667: (299-315): Unused function parameter. Remove or comment out the variable name to silence this warning.

test/libsolidity/syntaxTests/nameAndTypeResolution/333_fixed_point_casting_exponents_15.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contract test {
44
}
55
}
66
// ----
7-
// TypeError: (61-77): Operator ** not compatible with types int_const 3 and ufixed128x18. Exponent is fractional.
7+
// TypeError 2271: (61-77): Operator ** not compatible with types int_const 3 and ufixed128x18. Exponent is fractional.

test/libsolidity/syntaxTests/nameAndTypeResolution/334_fixed_point_casting_exponents_neg.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contract test {
44
}
55
}
66
// ----
7-
// TypeError: (61-78): Operator ** not compatible with types int_const 42 and fixed128x18. Exponent is fractional.
7+
// TypeError 2271: (61-78): Operator ** not compatible with types int_const 42 and fixed128x18. Exponent is fractional.

test/libsolidity/syntaxTests/nameAndTypeResolution/348_unused_return_value_call_value.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contract test {
44
}
55
}
66
// ----
7-
// Warning: (50-85): Return value of low-level calls not used.
7+
// Warning 9302: (50-85): Return value of low-level calls not used.

test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ contract D {
88
}
99
}
1010
// ----
11-
// TypeError: (106-123): Cannot set option "value", since the constructor of contract C is not payable.
11+
// TypeError 7006: (106-123): Cannot set option "value", since the constructor of contract C is not payable.

test/libsolidity/syntaxTests/natspec/docstring_author_title_state_variable.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ contract C {
44
uint private state;
55
}
66
// ----
7-
// DocstringParsingError: (17-56): Documentation tag @author not valid for non-public state variables.
8-
// DocstringParsingError: (17-56): Documentation tag @title not valid for non-public state variables.
7+
// DocstringParsingError 6546: (17-56): Documentation tag @author not valid for non-public state variables.
8+
// DocstringParsingError 6546: (17-56): Documentation tag @title not valid for non-public state variables.

test/libsolidity/syntaxTests/natspec/docstring_non_public_state_variable_with_return.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ contract test {
33
uint private state;
44
}
55
// ----
6-
// DocstringParsingError: (18-47): Documentation tag @return not valid for non-public state variables.
6+
// DocstringParsingError 6546: (18-47): Documentation tag @return not valid for non-public state variables.

test/libsolidity/syntaxTests/natspec/docstring_private_state_variable.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contract C {
44
uint private state;
55
}
66
// ----
7-
// DocstringParsingError: (17-74): Documentation tag @notice not valid for non-public state variables.
7+
// DocstringParsingError 6546: (17-74): Documentation tag @notice not valid for non-public state variables.

test/libsolidity/syntaxTests/natspec/docstring_variable.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ contract C {
1111
}
1212
}
1313
// ----
14-
// ParserError: (290-295): Only state variables can have a docstring.
14+
// ParserError 2837: (290-295): Only state variables can have a docstring.

test/libsolidity/syntaxTests/shifts/shift_singed_rvalue.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ contract C {
77
}
88
}
99
// ----
10-
// TypeError: (89-95): Operator >> not compatible with types int256 and int256
11-
// TypeError: (179-193): Operator >> not compatible with types int256 and int256
10+
// TypeError 2271: (89-95): Operator >> not compatible with types int256 and int256
11+
// TypeError 2271: (179-193): Operator >> not compatible with types int256 and int256

test/libsolidity/syntaxTests/signed_rational_modulus.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ contract test {
77
}
88
}
99
// ----
10-
// TypeError: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Fractional literals not supported.
10+
// TypeError 2271: (117-123): Operator % not compatible with types rational_const 1 / 2 and fixed128x18. Fractional literals not supported.

test/libsolidity/syntaxTests/viewPureChecker/gas_with_call_nonpayable.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ contract C {
88
}
99
}
1010
// ----
11-
// TypeError: (90-109): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
12-
// TypeError: (180-197): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
11+
// TypeError 8961: (90-109): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
12+
// TypeError 8961: (180-197): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.

test/libsolidity/syntaxTests/viewPureChecker/value_with_call_nonpayable.sol

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ contract C {
88
}
99
}
1010
// ----
11-
// TypeError: (90-111): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
12-
// TypeError: (182-201): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
11+
// TypeError 8961: (90-111): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
12+
// TypeError 8961: (182-201): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.

test/libyul/yulSyntaxTests/pc.yul

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// ====
55
// dialect: evmTyped
66
// ----
7-
// SyntaxError: (10-12): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.
7+
// SyntaxError 2450: (10-12): PC instruction is a low-level EVM feature. Because of that PC is disallowed in strict assembly.

0 commit comments

Comments
 (0)