solidity/test/cmdlineTests/standard_secondary_source_location/output.json

52 lines
1.8 KiB
JSON
Raw Normal View History

2022-10-26 10:13:47 +00:00
{
"errors":
[
{
"component": "general",
"errorCode": "3364",
"formattedMessage": "DeclarationError: Base constructor arguments given twice.
2020-12-01 13:46:26 +00:00
--> A:2:105:
|
2 | pragma solidity >=0.0; contract A { constructor(uint) {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
| ^^^^^^^^^^^^^^^^^^^^^
Note: First constructor call is here:
--> A:2:74:
|
2 | pragma solidity >=0.0; contract A { constructor(uint) {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
| ^^^^
Note: Second constructor call is here:
--> A:2:97:
|
2 | pragma solidity >=0.0; contract A { constructor(uint) {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
| ^^^^
2022-10-26 10:13:47 +00:00
",
"message": "Base constructor arguments given twice.",
"secondarySourceLocations":
[
{
"end": 112,
"file": "A",
"message": "First constructor call is here:",
"start": 108
},
{
"end": 135,
"file": "A",
"message": "Second constructor call is here:",
"start": 131
}
],
"severity": "error",
"sourceLocation":
{
"end": 160,
"file": "A",
"start": 139
},
"type": "DeclarationError"
}
],
"sources": {}
}