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: (47-65): "send" and "transfer" are only available for objects of type "address payable", not "address".
|
||||
// TypeError 9862: (47-65): "send" and "transfer" are only available for objects of type "address payable", not "address".
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
|
||||
// ----
|
||||
// TypeError: (47-69): "send" and "transfer" are only available for objects of type "address payable", not "address".
|
||||
// TypeError 9862: (47-69): "send" and "transfer" are only available for objects of type "address payable", not "address".
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
function g() public { f(1, 2, 3); }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (101-102): No matching declaration found after argument-dependent lookup.
|
||||
// TypeError 9322: (101-102): No matching declaration found after argument-dependent lookup.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
function g() public { L.f(1, 2, 3); }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (115-118): Member "f" not found or not visible after argument-dependent lookup in type(library L).
|
||||
// TypeError 9582: (115-118): Member "f" not found or not visible after argument-dependent lookup in type(library L).
|
||||
|
||||
@@ -10,4 +10,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (282-287): Member "a" not unique after argument-dependent lookup in contract C.
|
||||
// TypeError 6675: (282-287): Member "a" not unique after argument-dependent lookup in contract C.
|
||||
|
||||
@@ -10,4 +10,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (290-299): Member "value" not unique after argument-dependent lookup in contract C - did you forget the "payable" modifier?
|
||||
// TypeError 6675: (290-299): Member "value" not unique after argument-dependent lookup in contract C - did you forget the "payable" modifier?
|
||||
|
||||
+1
-1
@@ -9,4 +9,4 @@ contract Test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (208-218): Member "b1" is not available in struct Test.S1 memory outside of storage.
|
||||
// TypeError 4994: (208-218): Member "b1" is not available in struct Test.S1 memory outside of storage.
|
||||
|
||||
@@ -7,4 +7,4 @@ contract Test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (118-121): Member "b" is not available in struct Test.S memory outside of storage.
|
||||
// TypeError 4994: (118-121): Member "b" is not available in struct Test.S memory outside of storage.
|
||||
|
||||
@@ -3,4 +3,4 @@ contract C {
|
||||
function f() costs(1 ether) public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (101-115): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".
|
||||
// TypeError 2527: (101-115): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".
|
||||
|
||||
@@ -3,4 +3,4 @@ contract C {
|
||||
function f() costs(1 ether) public view {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (101-115): This modifier uses "msg.value" or "callvalue()" and thus the function has to be payable or internal.
|
||||
// TypeError 4006: (101-115): This modifier uses "msg.value" or "callvalue()" and thus the function has to be payable or internal.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract Test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (77-83): Member "push" is not available in uint256[] memory outside of storage.
|
||||
// TypeError 4994: (77-83): Member "push" is not available in uint256[] memory outside of storage.
|
||||
|
||||
Reference in New Issue
Block a user