view test/test_util.jl @ 1884:894bc613f61d test/type_stability

Close branch.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 28 Jan 2025 21:59:03 +0100
parents e7176fb09e98
children
line wrap: on
line source

function is_type_stable(f,args...)
    type_stable = true
    try @inferred f(args...)
    catch
        type_stable = false
    end
    return type_stable
end