schema: import std/sets when neccessary

This commit is contained in:
Emery Hemingway 2023-06-07 11:00:24 +01:00
parent 0f697349cc
commit 0e3824fc5d
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Package
version = "20230530"
version = "20230607"
author = "Emery Hemingway"
description = "data model and serialization format"
license = "Unlicense"

View File

@ -717,6 +717,8 @@ proc collectRefImports(imports: var StringSet; loc: Location; pat: Pattern)
proc collectRefImports(imports: var StringSet; loc: Location; sp: SimplePattern) =
case sp.orKind
of SimplePatternKind.setof:
incl(imports, "std/sets")
of SimplePatternKind.dictof:
incl(imports, "std/tables")
of SimplePatternKind.Ref: