~duangle/scopes-patch

[PATCH] enum: fix `copy` failing on unit tags

Details
Message ID
<CALet5G3zDk2yJwK7HN0e3FmCYeiw4kcvGzv7CFNBC7g2aPL4NA@mail.gmail.com>
DKIM signature
missing
Download raw message
# HG changeset patch
# User Westerbly Snaydley <westerbly@gmail.com>
# Date 1610725698 18000
#      Fri Jan 15 10:48:18 2021 -0500
# Node ID f11c24d3f63ac1568eed22e89277a5ff3f0cab42
# Parent  75f9938f120a1f63d18859d34093a14bc8497f31
enum: fix `copy` failing on unit tags

diff -r 75f9938f120a -r f11c24d3f63a lib/scopes/enum.sc
--- a/lib/scopes/enum.sc    Thu Jan 14 21:29:59 2021 +0100
+++ b/lib/scopes/enum.sc    Fri Jan 15 10:48:18 2021 -0500
@@ -410,7 +410,13 @@
                                         spice-quote
                                             inline (args...)
                                                 field
-                                                    va-map copy args...
+                                                    va-map
+                                                        inline (...)
+                                                            static-if
(not (none? ...))
+                                                                copy ...
+                                                            else
+                                                                ()
+                                                        args...
             fn __drop (self)
                 #print "dropping option" self
                 '__dispatch self
Reply to thread Export thread (mbox)