You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>wait(@async2+2)
julia> (@asyncfor i in1:10end)
Task (done) @0x000000017a6a33d0
julia>wait(@asyncfor i in1:10end) # <-- this seems like it should work
ERROR: syntax: unexpected "end"
Stacktrace:
[1] top-level scope
@ none:1
julia>wait((@asyncfor i in1:10end)) # <-- same here
ERROR: syntax: expected ")"
Stacktrace:
[1] top-level scope
@ none:1
julia>@sync@asyncfor i in1:10end
Task (done) @0x000000017a5cc180
julia>wait(@async(for i in1:10end))
The text was updated successfully, but these errors were encountered:
julia> wait(@async for i in 1:10 end)
ERROR: ParseError:
# Error @ REPL[1]:1:27
wait(@async for i in 1:10 end)
# └ ── Expected `)`
# Error @ REPL[1]:1:27
wait(@async for i in 1:10 end)
# └──┘ ── extra tokens after end of expression
Stacktrace:
[1] top-level scope
@ none:1
julia> wait((@async for i in 1:10 end))
ERROR: ParseError:
# Error @ REPL[2]:1:28
wait((@async for i in 1:10 end))
# └ ── Expected `)`
# Error @ REPL[2]:1:28
wait((@async for i in 1:10 end))
# └ ── Expected `)`
# Error @ REPL[2]:1:28
wait((@async for i in 1:10 end))
# └───┘ ── extra tokens after end of expression
Stacktrace:
[1] top-level scope
@ none:1
So while the new and old parser are consistent here, they still erronously close the block/expression too soon.
Looks like a similar case to #18650.
The text was updated successfully, but these errors were encountered: