From dda8a15b872243a6e788f352973875a7406e00da Mon Sep 17 00:00:00 2001 From: Will Tebbutt Date: Tue, 28 May 2024 17:34:39 +0100 Subject: [PATCH] Add inference test --- test/runtests.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0ff9df3..e50c813 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -7,5 +7,5 @@ using Core.Compiler: IRCode ir = Base.code_ircode_by_type(Tuple{typeof(sin), Float64})[1][1] oc = OpaqueClosure(ir; do_compile=true) mc = MistyClosure(oc, ir) - @test mc(5.0) == sin(5.0) + @test @inferred(mc(5.0)) == sin(5.0) end