We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5a1ee2 + 201fde7 commit 85cf61dCopy full SHA for 85cf61d
src/intertypes/julia.jl
@@ -143,6 +143,7 @@ function parse_intertype_decl(e; mod::InterTypeModule)
143
(name, tschema) = @match head begin
144
Expr(:(<:), name, parent) => (name, copy(mod.declarations[parent].schema))
145
name::Symbol => (name, TypedSchema{Symbol, InterType}())
146
+ _ => error("expected schema head of the form `\$SchemaName` or `\$SchemaName <: Parent`.")
147
end
148
Base.remove_linenums!(body)
149
Pair(name, SchemaDecl(parse_typedschema!(body, tschema; mod)))
0 commit comments