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

Graphaello Buildtime error: Keyword 'repeat' cannot be used as an identifier #37

Closed
satorusaka opened this issue Jul 29, 2021 · 2 comments

Comments

@satorusaka
Copy link

The API I'm using has "repeat" as a field, which is a swift reserved keyword.

Graphaello.swift:

...
case repeat = "REPEAT"   // ".../AL/Graphaello.swift:4222:18: Keyword 'repeat' cannot be used as an identifier here"
...

Theres will always be a swift compiler error on Buildtime using that API.

A fix would be to use backticks to escape the keyword.

@nerdsupremacist
Copy link
Owner

nerdsupremacist commented Jul 29, 2021

Thanks for the heads up.
Soon the new release should be up: https://github.com/nerdsupremacist/Graphaello/actions/runs/1078551590

Please let mw know if it still doesn't work.
(PS: I accidentally closed the issue when I mentioned it in the commit message. I won't close it until I know that it works for sure)

@satorusaka
Copy link
Author

The fix worked, thanks!

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