Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Errors sometimes report the line after the issue #35

Open
janicedatawire opened this issue Oct 23, 2015 · 0 comments
Open

Errors sometimes report the line after the issue #35

janicedatawire opened this issue Oct 23, 2015 · 0 comments

Comments

@janicedatawire
Copy link
Contributor

I omitted a ; at the end of a line and the error reported the issue was on the subsequent line.

Here's the Quark code:

package foobar{

}

void main() {
    int i=0;
    String j="foo";
    while (j == "foo") {
        i=i+1;
        j="bar"
        print(i.toString() + ": Hello World!");
    }
}

Note that the issue is on line 10, j="bar"

Here's the error when I try to compile:

examples/comparison.q:11:9: Rule 'SEMI' didn't match at 'print(i.toString() +' (line 11, column 9).
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

1 participant