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 3436c4ff3e
commit 0a0a3f6b25
3 changed files with 23 additions and 1 deletions

View File

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