Closed YingboMa closed 9 months ago
Once https://github.com/JuliaComputing/AllocCheck.jl/pull/36 lands this can be done with:
julia> foo() = rand(Any[1,1.0]) + true
julia> count(err isa AllocCheck.DynamicDispatch for err in check_allocs(foo, ()))
1
Maybe add a
check_dynamic_dispatch
function that only checks the presence of dynamic dispatch?