fixes #1286; object case transitions are now sound

This commit is contained in:
Andreas Rumpf 2019-05-26 23:10:34 +02:00
commit 49e686ab4e
14 changed files with 123 additions and 166 deletions

View file

@ -70,8 +70,7 @@ const
proc newXmlNode(kind: XmlNodeKind): XmlNode =
## Creates a new ``XmlNode``.
new(result)
result.k = kind
result = XmlNode(k: kind)
proc newElement*(tag: string): XmlNode =
## Creates a new ``XmlNode`` of kind ``xnElement`` with the given `tag`.