Skip to content

Commit

Permalink
hotfix: coerce to AlgTerm
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris Brown committed Sep 27, 2023
1 parent a996cd6 commit b8d80c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syntax/GATs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function fromexpr!(c::Context, e, bound::TypeScope, ::Type{AlgType}; kw...)::Alg
s::Symbol => AlgType(fromexpr(c, s, Ident))
Expr(:call, head, args...) =>
AlgType(fromexpr(c, head, Ident),
fromexpr!.(Ref(c), args, Ref(bound), Ref(AlgTerm); kw...))
Vector{AlgTerm}(fromexpr!.(Ref(c), args, Ref(bound), Ref(AlgTerm); kw...)))
_ => error("could not parse AlgType from $e")
end
end
Expand Down

0 comments on commit b8d80c9

Please sign in to comment.