julia
7529dbd0 - syntax: expressions used in value position had the wrong line number (#44982)

Commit
3 years ago
syntax: expressions used in value position had the wrong line number (#44982) For example, the `%2 = f()` should have been shifted up a line in this output example, in the same block as `x`: ``` julia> Meta.lower(Main, Expr(:block, Expr(:line, 1, :a), Expr(:block, Expr(:line, 2, :b), Expr(:call, :g, Expr(:block, Expr(:line, 3, :c), :x, Expr(:call, :f)), ), ))) :($(Expr(:thunk, CodeInfo( @ a:1 within `top-level scope` ┌ @ b:2 within `macro expansion` @ c:3 1 ─│ x │ │ @ b:2 within `macro expansion` │ │ %2 = f() │ │ %3 = g(%2) │ └ └── return %3 )))) ```
Author
Parents
Loading