Skip to content

Commit

Permalink
test case for static parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
KDr2 committed Oct 22, 2024
1 parent 7349f36 commit 2175446
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/issues.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@
tf = Libtask.TapedFunction(f)
r = tf()
@test r == nothing

# static parameter
function g(::Type{T}) where {T}
a = zeros(T, 10)
end
tf = Libtask.TapedFunction(g, Float64)
r = tf(Float64)
@test r == zeros(Float64, 10)
end

end

0 comments on commit 2175446

Please sign in to comment.