JuliaLang/julia — Issue #526: Incorrect line number for type error
Author: aviks
Created: 2012-03-06 14:58:26+00:00
State: open

The line number for the type error in the following example program shows the caller of the function with the error, rather than the line with the error itself.

bash-3.2$ ./julia test/a.jl
type error: non-boolean (Int64) used in boolean context
at test/a.jl:7

a.jl, line numbers added for convenience.
=====
1: function f()
2: if (0)
3: print("a")
4: end
5: end
6:
7: f()
==========

Expected: error message should show line a.jl:2

Using julia Commit 335d1ef401