forked from alex-eg/sex
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:
18
semen.scm
18
semen.scm
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user