ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
137 stars 53 forks source link

Errors when ReturnStatement arguments are on subsequent lines #86

Closed cgewecke closed 7 years ago

cgewecke commented 7 years ago

SP errors this:

contract multilineReturn {
  function a() returns (uint x) {
    return
      5;
  }
}

Compiles fine though. An example from the wild can be seen at Numerai here. Opening a PR in a second.

federicobond commented 7 years ago

Yes, another remnant of the ECMAScript syntax this parser was based on. Should be a single character fix :)