Added error codes to SyntaxTest expectations (updated tests)

This commit is contained in:
a3d4
2020-06-22 16:51:47 +02:00
parent 8ebe7676d5
commit e04cedafc5
1775 changed files with 3951 additions and 3952 deletions
@@ -6,4 +6,4 @@ contract C
}
}
// ----
// TypeError: (60-64): Tuple component cannot be empty.
// TypeError 8381: (60-64): Tuple component cannot be empty.
@@ -6,4 +6,4 @@ contract C
}
}
// ----
// TypeError: (59-64): Unary operator -- cannot be applied to type tuple(,)
// TypeError 9767: (59-64): Unary operator -- cannot be applied to type tuple(,)
@@ -6,5 +6,5 @@ contract C
}
}
// ----
// TypeError: (68-69): Expression has to be an lvalue.
// TypeError: (59-70): Unary operator delete cannot be applied to type tuple(,int_const 0)
// TypeError 4247: (68-69): Expression has to be an lvalue.
// TypeError 9767: (59-70): Unary operator delete cannot be applied to type tuple(,int_const 0)
@@ -6,4 +6,4 @@ contract C
}
}
// ----
// TypeError: (61-66): Unary operator ++ cannot be applied to type tuple(,)
// TypeError 9767: (61-66): Unary operator ++ cannot be applied to type tuple(,)
@@ -9,12 +9,12 @@ contract C
}
}
// ----
// SyntaxError: (59-66): Use of unary + is disallowed.
// TypeError: (59-66): Unary operator + cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError: (51-66): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError: (84-91): Unary operator - cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError: (76-91): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError: (111-118): Unary operator ~ cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError: (101-118): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError: (138-145): Unary operator ! cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError: (128-145): Different number of components on the left hand side (1) than on the right hand side (2).
// SyntaxError 9636: (59-66): Use of unary + is disallowed.
// TypeError 4907: (59-66): Unary operator + cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError 7364: (51-66): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError 4907: (84-91): Unary operator - cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError 7364: (76-91): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError 4907: (111-118): Unary operator ~ cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError 7364: (101-118): Different number of components on the left hand side (1) than on the right hand side (2).
// TypeError 4907: (138-145): Unary operator ! cannot be applied to type tuple(int_const 0,int_const 0)
// TypeError 7364: (128-145): Different number of components on the left hand side (1) than on the right hand side (2).
@@ -2,4 +2,4 @@ contract C {
function ( uint ) external returns ( a [ ] calldata ) public a = ( 1 / 2 ) ;
}
// ----
// TypeError: (58-59): Name has to refer to a struct, enum or contract.
// TypeError 5172: (58-59): Name has to refer to a struct, enum or contract.
@@ -14,4 +14,4 @@ contract C {
}
}
// ----
// TypeError: (530-540): Type too large for memory.
// TypeError 1534: (530-540): Type too large for memory.
@@ -9,4 +9,4 @@ contract C {
}
}
// ----
// TypeError: (169-181): Type too large for memory.
// TypeError 1534: (169-181): Type too large for memory.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError: (226-234): Type too large for memory.
// TypeError 1534: (226-234): Type too large for memory.
@@ -4,4 +4,4 @@
}
}
// ----
// TypeError: (91-136): Data location must be "storage" for variable, but "memory" was given.
// TypeError 6651: (91-136): Data location must be "storage" for variable, but "memory" was given.
@@ -10,4 +10,4 @@ contract Test {
}
}
// ----
// DeclarationError: (157-198): Identifier already declared.
// DeclarationError 2333: (157-198): Identifier already declared.