Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ end
test_do_block()
end

@testset "Compatibility with kwargs" begin
foo(; n) = n <= 1 ? 1 : n * (@__FUNCTION__)(; n = n - 1)
@test foo(n = 5) == 120
end

@testset "Error upon misuse" begin
@gensym A
@test_throws(
Expand Down