Skip to content

Commit b628f6e

Browse files
committed
add minimal test case
1 parent ef58dc0 commit b628f6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/interpret.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,3 +804,10 @@ end
804804
# even after https://github.com/JuliaLang/julia/pull/41018
805805
@test Int === @interpret Core.Compiler.getfield_tfunc(m.Foo, Core.Compiler.Const(:foo))
806806
end
807+
808+
@testset "https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/488" begin
809+
m = Module()
810+
ex = :(foo() = return)
811+
JuliaInterpreter.finish_and_return!(Frame(m, ex), true)
812+
@test isdefined(m, :foo)
813+
end

0 commit comments

Comments
 (0)