ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
137 stars 53 forks source link

Order of ConstantToken shouldn't matter #26

Closed raineorshine closed 7 years ago

raineorshine commented 7 years ago

Observed behavior:

This parses successfully:

contract MyContract {
  uint constant internal a = 0;
}

But this does not:

contract MyContract {
  uint internal constant a = 0;
}

Expected Behavior

Both should parse. Order of ConstantToken in DeclarativeExpression shouldn't matter.