Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Error parsing return statement #34

Closed
golivax opened this issue Jul 17, 2018 · 3 comments
Closed

Error parsing return statement #34

golivax opened this issue Jul 17, 2018 · 3 comments

Comments

@golivax
Copy link

golivax commented Jul 17, 2018

Hi Federico. I noticed the parser throws an error when parsing a return statement written like this "return();". Again, I've seen contracts running on Ethereum that use this statement, so I think it's syntactically valid. But again, I'm a newbie in Solidity, so I might be wrong. Would you mind looking into this? Thanks!

@federicobond
Copy link
Owner

Indeed, even if it's horrible style, it's apparently syntactically valid. I have fixed this in be35e68 and will include it in the next release.

@golivax
Copy link
Author

golivax commented Jul 17, 2018

Awesome, tks!

@federicobond
Copy link
Owner

Thanks for reporting @golivax!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants