Skip to content

Commit 142fe64

Browse files
Update tests (Solidity keywords)
1 parent 5f73cfc commit 142fe64

File tree

35 files changed

+72
-0
lines changed

35 files changed

+72
-0
lines changed

test/libsolidity/syntaxTests/constants/constant_state_variable_named_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ contract C {
22
int constant public transient = 0;
33
}
44
// ----
5+
// Warning 6335: (17-50): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.

test/libsolidity/syntaxTests/dataLocations/data_location_in_function_type_fail.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ library L {
77

88
// ----
99
// Warning 6162: (251-267): Naming function type parameters is deprecated.
10+
// Warning 6335: (251-267): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
1011
// TypeError 6651: (159-173): Data location must be "memory" or "calldata" for parameter in function, but "storage" was given.
1112
// TypeError 6651: (251-267): Data location must be "memory" or "calldata" for parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/externalFunction/function_argument_location_specifier_test_external_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract test {
22
function f(bytes transient) external;
33
}
44
// ----
5+
// Warning 6335: (31-46): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (31-46): Data location must be "memory" or "calldata" for parameter in external function, but none was given.

test/libsolidity/syntaxTests/dataLocations/internalFunction/function_argument_location_specifier_test_internal_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract test {
22
function f(bytes transient) internal {}
33
}
44
// ----
5+
// Warning 6335: (31-46): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (31-46): Data location must be "storage", "memory" or "calldata" for parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/libraries/library_function_with_data_location_transient.sol

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ library L {
99
function i2() external pure returns (uint[] transient) { }
1010
}
1111
// ----
12+
// Warning 6335: (28-44): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
13+
// Warning 6335: (103-119): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
14+
// Warning 6335: (141-157): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
15+
// Warning 6335: (218-234): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
16+
// Warning 6335: (256-272): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
17+
// Warning 6335: (329-345): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
18+
// Warning 6335: (367-383): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
19+
// Warning 6335: (444-460): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
1220
// TypeError 6651: (28-44): Data location must be "storage", "memory" or "calldata" for parameter in function, but none was given.
1321
// TypeError 6651: (103-119): Data location must be "storage", "memory" or "calldata" for return parameter in function, but none was given.
1422
// TypeError 6651: (141-157): Data location must be "storage", "memory" or "calldata" for parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/libraryExternalFunction/function_argument_location_specifier_test_external_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ library test {
22
function f(bytes transient) external {}
33
}
44
// ----
5+
// Warning 6335: (30-45): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (30-45): Data location must be "storage", "memory" or "calldata" for parameter in external function, but none was given.

test/libsolidity/syntaxTests/dataLocations/libraryInternalFunction/function_argument_location_specifier_test_internal_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ library test {
22
function f(bytes transient) internal pure {}
33
}
44
// ----
5+
// Warning 6335: (30-45): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (30-45): Data location must be "storage", "memory" or "calldata" for parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/privateFunction/private_function_parameters_location_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract C {
22
function f(uint[] transient) private pure {}
33
}
44
// ----
5+
// Warning 6335: (28-44): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (28-44): Data location must be "storage", "memory" or "calldata" for parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/privateFunction/private_function_return_parameters_location_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract C {
22
function f() private pure returns (uint[] transient) {}
33
}
44
// ----
5+
// Warning 6335: (52-68): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (52-68): Data location must be "storage", "memory" or "calldata" for return parameter in function, but none was given.

test/libsolidity/syntaxTests/dataLocations/publicFunction/function_argument_location_specifier_test_public_transient.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ contract test {
22
function f(bytes transient) public;
33
}
44
// ----
5+
// Warning 6335: (31-46): "transient" will be promoted to reserved keyword in the next breaking version and will not be allowed as an identifier anymore.
56
// TypeError 6651: (31-46): Data location must be "memory" or "calldata" for parameter in function, but none was given.

0 commit comments

Comments
 (0)