Skip to content

Commit 2175446

Browse files
committed
test case for static parameter
1 parent 7349f36 commit 2175446

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/issues.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@
7070
tf = Libtask.TapedFunction(f)
7171
r = tf()
7272
@test r == nothing
73+
74+
# static parameter
75+
function g(::Type{T}) where {T}
76+
a = zeros(T, 10)
77+
end
78+
tf = Libtask.TapedFunction(g, Float64)
79+
r = tf(Float64)
80+
@test r == zeros(Float64, 10)
7381
end
7482

7583
end

0 commit comments

Comments
 (0)