Skip to content

Commit cd49151

Browse files
authored
Merge pull request #332 from ztangent/typed-gen-fns
Fix test case with wrong input type.
2 parents 337beb3 + 753609f commit cd49151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/dsl/dynamic_dsl.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ end
2525

2626
@test baz(5) == 5
2727

28-
@gen (grad) oneliner(x::Float64, (grad)(y::Float64=5)) = x+y
28+
@gen (grad) oneliner(x::Float64, (grad)(y::Float64=5.0)) = x+y
2929

30-
@test oneliner(5) == 10
30+
@test oneliner(5.0) == 10.0
3131
end
3232

3333
@testset "return type" begin

0 commit comments

Comments
 (0)