File tree Expand file tree Collapse file tree 3 files changed +26
-45
lines changed Expand file tree Collapse file tree 3 files changed +26
-45
lines changed Original file line number Diff line number Diff line change 229229 @test consume (a) == 4
230230 end
231231 end
232+ @testset " Issue: PR-86 (DynamicPPL.jl/pull/261)" begin
233+ function f ()
234+ t = Array {Int} (undef, 1 )
235+ t[1 ] = 0
236+ for _ in 1 : 4000
237+ produce (t[1 ])
238+ t[1 ]
239+ t[1 ] = 1 + t[1 ]
240+ end
241+ end
242+
243+ ttask = TapedTask (nothing , f)
244+
245+ ex = try
246+ for _ in 1 : 999
247+ consume (ttask)
248+ consume (ttask)
249+ a = copy (ttask)
250+ consume (a)
251+ consume (a)
252+ end
253+ catch ex
254+ ex
255+ end
256+ @test ex === nothing
257+ end
232258end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ include("front_matter.jl")
55 @test JuliaFormatter. format (Libtask; verbose= false , overwrite= false )
66 end
77 include (" copyable_task.jl" )
8- # include("issues.jl")
98end
You can’t perform that action at this time.
0 commit comments