Skip to content

Commit

Permalink
Merge pull request #97 from AlgebraicJulia/@schema-head-error-message
Browse files Browse the repository at this point in the history
Small Error Improvement
  • Loading branch information
olynch authored Jan 10, 2024
2 parents d5a1ee2 + 201fde7 commit 85cf61d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/intertypes/julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ function parse_intertype_decl(e; mod::InterTypeModule)
(name, tschema) = @match head begin
Expr(:(<:), name, parent) => (name, copy(mod.declarations[parent].schema))
name::Symbol => (name, TypedSchema{Symbol, InterType}())
_ => error("expected schema head of the form `\$SchemaName` or `\$SchemaName <: Parent`.")
end
Base.remove_linenums!(body)
Pair(name, SchemaDecl(parse_typedschema!(body, tschema; mod)))
Expand Down

0 comments on commit 85cf61d

Please sign in to comment.