the issue is basically the discrepency in reporting the line numbers for these two inputs :
julia> a=1
b=c
ERROR: UndefVarError: `c` not defined
Stacktrace:
[1] top-level scope
@ REPL[1]:2
julia> a=1
b=c;
ERROR: UndefVarError: `c` not defined
Stacktrace:
[1] top-level scope
@ REPL[2]:1