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

non-specific line number for error #8828

Closed
dfagnan opened this issue Oct 28, 2014 · 1 comment
Closed

non-specific line number for error #8828

dfagnan opened this issue Oct 28, 2014 · 1 comment

Comments

@dfagnan
Copy link

dfagnan commented Oct 28, 2014

This example is contrived, but illustrates a problem I stumbled across that is similar to #6179.
test.jl contains:

for i=1:10
    if false |           #Should error on line 2.
        continue
    end
end

Which produces the following upon including the file:

include("test.jl")

ERROR: error compiling anonymous: unsupported or misplaced expression break in function anonymous
 in include at ./boot.jl:245
 in include_from_node1 at ./loading.jl:128
while loading test.jl, in expression starting on line 1

Tested on Version 0.3.2 and the current nightly build of 0.4

@stevengj
Copy link
Member

Closing in favor of re-opening #6179, as that is the "non-specific line numbers" issue.

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