-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
This behavior is surprising because it suddenly jumps to an unexpected place:
julia> function foo(x)
println(x)
y = 0
if x
y = 1
end
return y
end
foo (generic function with 1 method)
julia> @enter foo(true)
In foo(x) at REPL[2]:1
1 function foo(x)
>2 println(x)
3 y = 0
4 if x
5 y = 1
6 end
About to run: (println)(true)
1|debug> n
true
In foo(x) at REPL[2]:1
3 y = 0
4 if x
5 y = 1
6 end
>7 return y
8 end
About to run: return 1
1|debug>
1
Metadata
Metadata
Assignees
Labels
No labels