Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using a Library 'for' causes SyntaxError #10

Closed
elenadimitrova opened this issue Aug 23, 2016 · 2 comments
Closed

using a Library 'for' causes SyntaxError #10

elenadimitrova opened this issue Aug 23, 2016 · 2 comments

Comments

@elenadimitrova
Copy link

Having a

using LibraryContract **for** someDataType;

As described here http://solidity.readthedocs.io/en/latest/contracts.html?#using-for

causes a SyntaxError:

Error: An error occured while parsing the source code:
SyntaxError: Expected "!=", "!==", "%", "%=", "&", "&&", "&=", "*", "*=", "+", "++", "+=", ",", "-", "--", "-=", "/", "/*", "//", "/=", ";", "<", "<<", "<<=", "<=", "=", "==", "===", ">", ">=", ">>", ">>=", ">>>", ">>>=", "?", "^", "^=", "in", "instanceof", "|", "|=", "||", comment, end of line or whitespace but "f" found. Line: 25, Column: 21
An error occured while running the linter on /MyContract.sol:
@duaraghav8
Copy link
Owner

This occurs because solparse (the library being used internally for creating the code's AST) doesn't expect for at that position, the grammar is not in sync with latest Solidity version). I'll fix it and notify you once I make the new release.

Thanks for reporting this :)

@duaraghav8
Copy link
Owner

Solved in v0.1.11

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

No branches or pull requests

2 participants