mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error codes to SyntaxTest expectations (updated tests)
This commit is contained in:
@@ -5,4 +5,4 @@ contract c {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (63-74): Type bytes calldata slice is not implicitly convertible to expected type bytes storage ref.
|
||||
// TypeError 7407: (63-74): Type bytes calldata slice is not implicitly convertible to expected type bytes storage ref.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (66-72): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (66-72): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (65-71): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (65-71): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (65-88): Type bytes calldata slice is not implicitly convertible to expected type bytes memory.
|
||||
// TypeError 9574: (65-88): Type bytes calldata slice is not implicitly convertible to expected type bytes memory.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (79-85): Invalid type for argument in function call. Invalid implicit conversion from bytes calldata slice to bytes memory requested.
|
||||
// TypeError 9553: (79-85): Invalid type for argument in function call. Invalid implicit conversion from bytes calldata slice to bytes memory requested.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (76-82): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (76-82): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (92-100): Member "a" not found or not visible after argument-dependent lookup in uint256[] calldata slice.
|
||||
// TypeError 9582: (92-100): Member "a" not found or not visible after argument-dependent lookup in uint256[] calldata slice.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (70-76): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (70-76): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (72-78): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (72-78): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (52-57): Index range access is only possible for arrays and array slices.
|
||||
// TypeError 4781: (52-57): Index range access is only possible for arrays and array slices.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (76-82): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (76-82): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (77-83): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (77-83): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (52-58): Index range access is only possible for arrays and array slices.
|
||||
// TypeError 4781: (52-58): Index range access is only possible for arrays and array slices.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (69-75): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (69-75): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (71-77): Index range access is only supported for dynamic calldata arrays.
|
||||
// TypeError 1227: (71-77): Index range access is only supported for dynamic calldata arrays.
|
||||
|
||||
Reference in New Issue
Block a user