ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
138 stars 54 forks source link

Incorrectly shows error with var ( ,b) = ... #79

Closed beether closed 6 years ago

beether commented 7 years ago

With: var (,b) = someFuncThatReturnsTwoValues()

It returns Expected identifier but " " found.

This is valid syntax.

travs commented 7 years ago

This happens to me as well, but like this:

Parse:

var (, , , , , sharePrice) = performCalculations();

Error:

Expected identifier but "," found