2020-05-29 23:42:36 +00:00
|
|
|
{"errors":[{"component":"general","errorCode":"3364","formattedMessage":"A:2:112: DeclarationError: Base constructor arguments given twice.
|
2019-07-08 12:27:32 +00:00
|
|
|
pragma solidity >=0.0; contract A { constructor(uint) public {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
|
|
|
|
^-------------------^
|
2020-05-13 01:52:11 +00:00
|
|
|
A:2:81: First constructor call is here:
|
2019-07-08 12:27:32 +00:00
|
|
|
pragma solidity >=0.0; contract A { constructor(uint) public {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
|
|
|
|
^--^
|
2020-05-13 01:52:11 +00:00
|
|
|
A:2:104: Second constructor call is here:
|
2019-07-08 12:27:32 +00:00
|
|
|
pragma solidity >=0.0; contract A { constructor(uint) public {} } contract B is A(2) { } contract C is A(3) {} contract D is B, C {}
|
|
|
|
^--^
|
2020-05-13 01:52:11 +00:00
|
|
|
","message":"Base constructor arguments given twice.","secondarySourceLocations":[{"end":119,"file":"A","message":"First constructor call is here:","start":115},{"end":142,"file":"A","message":"Second constructor call is here:","start":138}],"severity":"error","sourceLocation":{"end":167,"file":"A","start":146},"type":"DeclarationError"}],"sources":{}}
|