mirror of
https://github.com/janet-lang/janet
synced 2025-12-04 07:38:09 +00:00
Address #529
This commit is contained in:
@@ -1652,7 +1652,7 @@
|
||||
# match data structure template
|
||||
(or isarr (= t :struct) (= t :table))
|
||||
(eachp [i sub-pattern] pattern
|
||||
(when (not= t :array)
|
||||
(when (not isarr)
|
||||
(array/push anda [not= nil (get-sym s i)]))
|
||||
(visit-pattern-2 anda gun preds s i sub-pattern))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user