decay an array into a wildcard standing alone

An array as a value is a pointer to its first element; _ took the array
type, and declared a copy that C cannot initialize from it.
This commit is contained in:
2026-10-18 22:02:55 +03:00
parent 60680bbb0a
commit 97b99ab842
3 changed files with 23 additions and 1 deletions

View File

@@ -34,9 +34,11 @@
(export
;; The IR
tvar?
prim-type? prim-name
ptr-type?
array-type? array-elt
resolve
underlying
c-primitive?
decay