1
0
forked from alex-eg/sex

read a var's type as a type, not as a call

`walk-parts' walked the whole `var' form, and a `fn' type's parameter
list is shaped like a call: `(fn ((c int)) int)' came out as
`int (*fp)(c int)'. A closure literal had no type, so calling one in
place missed the rewrite; sextest fed sexc symbols Sex cannot read.
This commit is contained in:
2026-09-30 23:20:55 +03:00
parent e87463be87
commit fe72a109bf
4 changed files with 153 additions and 13 deletions

View File

@@ -108,6 +108,7 @@ SEX_TEST_PROGRAMS = c99 \
inference \
lambdas \
lists \
operators \
serialize \
type-shapes \
unicode \