preserves_schema_nim: embedded literals are not literals

This commit is contained in:
Emery Hemingway 2024-01-14 12:26:15 +02:00
parent a01ba8c96d
commit aa5c7f4683
2 changed files with 1 additions and 4 deletions

View File

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

View File

@ -302,9 +302,6 @@ proc isLiteral(loc: Location; sp: SimplePattern): bool =
result = isLiteral(loc, def)
of SimplepatternKind.lit:
result = true
of SimplepatternKind.embedded:
if not loc.schema.hasEmbeddedType:
result = isLiteral(loc, sp.embedded.interface)
else: discard
proc isLiteral(loc: Location; np: NamedPattern): bool =