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

Wrong error message for invalid indentation after continue #11399

Open
koranza opened this issue Jun 4, 2019 · 1 comment
Open

Wrong error message for invalid indentation after continue #11399

koranza opened this issue Jun 4, 2019 · 1 comment

Comments

@koranza
Copy link
Contributor

koranza commented Jun 4, 2019

The error message I get in the example below is misleading. It should say something about invalid indentation instead.

Example

for word in @["Hello", "World", ""]:
  if len(word) == 0: continue
    echo word

Current Output

example.nim(2, 22) Error: 'continue' cannot have a label

Expected Output

example.nim(3, 22) Error: invalid indentation
@timotheecour
Copy link
Member

related but different: #15667

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

No branches or pull requests

3 participants