infer a global's type before its braces lose theirs

A global's initializer was stripped to plain braces before `_' was
solved, so #(point : 2 3) left nothing to infer point from.
This commit is contained in:
2026-10-19 15:33:37 +03:00
parent a0b323980f
commit a885c21b9b
2 changed files with 15 additions and 14 deletions

View File

@@ -1876,15 +1876,15 @@
;; from
(core (if (eq? 'extern qualifier)
core
(resolve-wildcard
(copy-form-source!
core
(if (> (length core) 3)
(append (take core 3)
(map bare-braces
(walk-operands core (drop core 3) env)))
core))
env)))
(let ((solved (resolve-wildcard
(copy-form-source!
core
(if (> (length core) 3)
(append (take core 3)
(walk-operands core (drop core 3) env))
core))
env)))
(copy-form-source! solved (map bare-braces solved)))))
(form (if qualifier
(copy-form-source! resolved (cons qualifier core))
core)))