Skip to content

incorrect line number reported for index out of range error #922

@mlubin

Description

@mlubin

If you run:

function foo()
    x = ones(10)
    print("first access\n")
    x[1]
    print("second access\n")
    x[20]
end
foo()

the result is

first access
second access
in foo: arrayref: index out of range
 in foo at none:4

Note the line number is incorrect. As in #900, this isn't helpful when trying to debug :)

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorregressionRegression in behavior compared to a previous version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions