mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update error message of 4907_error
This commit is contained in:
@@ -31,6 +31,6 @@ contract C {
|
||||
// TypeError 2271: (311-316): Binary operator + not compatible with types struct S storage ref and struct S storage ref. No matching user-defined operator found.
|
||||
// TypeError 5653: (326-336): User defined binary operator + not compatible with types struct S memory and bool.
|
||||
// TypeError 2271: (346-354): Binary operator + not compatible with types bool and struct S storage ref.
|
||||
// TypeError 4907: (364-369): Unary operator - cannot be applied to type struct S storage pointer. No matching user-defined operator found.
|
||||
// TypeError 4907: (379-381): Unary operator - cannot be applied to type struct S storage ref. No matching user-defined operator found.
|
||||
// TypeError 4907: (391-396): Unary operator - cannot be applied to type bool.
|
||||
// TypeError 4907: (364-369): Built-in unary operator - cannot be applied to type struct S storage pointer. No matching user-defined operator found.
|
||||
// TypeError 4907: (379-381): Built-in unary operator - cannot be applied to type struct S storage ref. No matching user-defined operator found.
|
||||
// TypeError 4907: (391-396): Built-in unary operator - cannot be applied to type bool.
|
||||
|
||||
@@ -65,4 +65,4 @@ function test(S calldata s) pure {
|
||||
// TypeError 3605: (82-87): The function "unsub" needs to have parameters and return value of the same type to be used for the operator -.
|
||||
// TypeError 7743: (98-104): The function "bitnot" needs to return exactly one value of type S to be used for the operator ~.
|
||||
// TypeError 2271: (764-769): Binary operator * not compatible with types struct S calldata and struct S calldata. No matching user-defined operator found.
|
||||
// TypeError 4907: (797-799): Unary operator - cannot be applied to type struct S calldata. No matching user-defined operator found.
|
||||
// TypeError 4907: (797-799): Built-in unary operator - cannot be applied to type struct S calldata. No matching user-defined operator found.
|
||||
|
||||
@@ -60,4 +60,4 @@ contract C {
|
||||
// TypeError 7743: (82-87): The function "unsub" needs to return exactly one value of type S to be used for the operator -.
|
||||
// TypeError 1147: (98-104): The function "bitnot" needs to have exactly one parameter of type S to be used for the operator ~.
|
||||
// TypeError 2271: (728-733): Binary operator * not compatible with types struct S storage ref and struct S storage ref. No matching user-defined operator found.
|
||||
// TypeError 4907: (785-787): Unary operator ~ cannot be applied to type struct S storage ref. No matching user-defined operator found.
|
||||
// TypeError 4907: (785-787): Built-in unary operator ~ cannot be applied to type struct S storage ref. No matching user-defined operator found.
|
||||
|
||||
+1
-1
@@ -15,4 +15,4 @@ contract C {
|
||||
|
||||
// ----
|
||||
// TypeError 1147: (32-38): The function "bitnot" needs to have exactly one parameter of type Int to be used for the operator ~.
|
||||
// TypeError 4907: (186-198): Unary operator ~ cannot be applied to type Int. No matching user-defined operator found.
|
||||
// TypeError 4907: (186-198): Built-in unary operator ~ cannot be applied to type Int. No matching user-defined operator found.
|
||||
|
||||
Reference in New Issue
Block a user