Skip to content
This repository has been archived by the owner on May 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #96 from vchuravy/vc/spec
Browse files Browse the repository at this point in the history
Force specialization of contexualize on length of vararg
  • Loading branch information
vchuravy authored Oct 2, 2019
2 parents aa1e8dd + ff3c65e commit 19ebf17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/context.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,6 @@ kernel!(c)
@assert g.(a) ≈ c
```
"""
contextualize(f::F) where F = (args...) -> Cassette.overdub(ctx, f, args...)
contextualize(f::F) where F = function (args::Vararg{<:Any, N}) where N
Cassette.overdub(ctx, f, args...)
end

0 comments on commit 19ebf17

Please sign in to comment.