Skip to content

Commit

Permalink
fix @install
Browse files Browse the repository at this point in the history
The `_needs_tracking_julia_to_gap` method must be installed
not only for the given type but also for its subtypes.
  • Loading branch information
ThomasBreuer committed Sep 13, 2024
1 parent 79b04d2 commit 8d3901e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ macro install(ex)
typeannot = x.args[2]
end
Base.eval(__module__, quote
GAP._needs_tracking_julia_to_gap(::Type{$typeannot}) = false
GAP._needs_tracking_julia_to_gap(::Type{Sub}) where Sub <: $typeannot = false
end)

return esc(Expr(
Expand Down

0 comments on commit 8d3901e

Please sign in to comment.