mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7616 from ethereum/fixOverrideMessage
Fix override error message.
This commit is contained in:
commit
3d625cc239
@ -51,7 +51,7 @@ vector<ASTPointer<UserDefinedTypeName>> sortByContract(vector<ASTPointer<UserDef
|
||||
{
|
||||
auto sorted = _list;
|
||||
|
||||
sort(sorted.begin(), sorted.end(),
|
||||
stable_sort(sorted.begin(), sorted.end(),
|
||||
[] (ASTPointer<UserDefinedTypeName> _a, ASTPointer<UserDefinedTypeName> _b) {
|
||||
if (!_a || !_b)
|
||||
return _a < _b;
|
||||
|
@ -25,7 +25,7 @@ contract X is A, B, C, D {
|
||||
// TypeError: (237-295): Contract "C" should be marked as abstract.
|
||||
// TypeError: (296-399): Contract "D" should be marked as abstract.
|
||||
// TypeError: (498-499): Duplicate contract "D" found in override list of "test".
|
||||
// TypeError: (560-561): Duplicate contract "B" found in override list of "foo".
|
||||
// TypeError: (563-564): Duplicate contract "B" found in override list of "foo".
|
||||
// TypeError: (566-567): Duplicate contract "B" found in override list of "foo".
|
||||
// TypeError: (572-573): Duplicate contract "D" found in override list of "foo".
|
||||
// TypeError: (400-595): Contract "X" should be marked as abstract.
|
||||
|
Loading…
Reference in New Issue
Block a user