2019-05-27 14:13:27 +00:00
|
|
|
pragma solidity >=0.0.0;
|
|
|
|
|
|
|
|
contract Error1 {
|
|
|
|
constructor() public {
|
|
|
|
balances[tx.origin] = ; // missing RHS.
|
|
|
|
}
|
|
|
|
|
|
|
|
// Without error recovery we stop due to the above error.
|
|
|
|
// Error recovery however recovers at the above ';'
|
|
|
|
// There should be an AST for the above, albeit with error
|
|
|
|
// nodes.
|
|
|
|
|
|
|
|
// This function parses properly and should give AST info.
|
|
|
|
function five() public view returns(uint) {
|
|
|
|
return 5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-06-19 00:26:46 +00:00
|
|
|
// ParserError 6933: (95-96): Expected primary expression.
|
|
|
|
// Warning 3347: (95-96): Recovered in Statement at ';'.
|