Skip to content

Commit 9026819

Browse files
authored
fix test on nightly (#564)
1 parent 9c5454c commit 9026819

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/interpret.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,11 @@ end
824824
end
825825
# this shouldn't throw "type DataType has no field hasfreetypevars"
826826
# even after https://github.com/JuliaLang/julia/pull/41018
827-
@test Int === @interpret Core.Compiler.getfield_tfunc(m.Foo, Core.Compiler.Const(:foo))
827+
@static if VERSION v"1.9.0-DEV.1556"
828+
@test Int === @interpret Core.Compiler.getfield_tfunc(Core.Compiler.fallback_lattice, m.Foo, Core.Compiler.Const(:foo))
829+
else
830+
@test Int === @interpret Core.Compiler.getfield_tfunc(m.Foo, Core.Compiler.Const(:foo))
831+
end
828832
end
829833

830834
@testset "https://github.com/JuliaDebug/JuliaInterpreter.jl/issues/488" begin

0 commit comments

Comments
 (0)