make the arg comparator even more potent

This commit is contained in:
XeroOl 2025-07-12 14:00:11 -05:00
parent 561f199505
commit a54745c581

View File

@ -285,7 +285,8 @@ the `file.diagnostics` field, filling it with diagnostics."
:newText "do"})]}}))})
(fn possibly-multival? [ast]
(or (fennel.list? ast)
;; operators all adjust to 1 value
(or (and (fennel.list? ast) (not (op? (. ast 1))) (not (sym? (. ast 1) :not)))
(fennel.varg? ast)))
(add-lint :mismatched-argument-count