diff options
-rw-r--r-- | binfile.c | 2 | ||||
-rw-r--r-- | test.toc | 2 | ||||
-rw-r--r-- | types.c | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -#define BINFILE_PORTABLE 1 +/* #define BINFILE_PORTABLE 1 */ static inline void write_u8(FILE *fp, U8 u8) { putc(u8, fp); @@ -1,2 +1,2 @@ #export foo :: f64 = 0.07321; -asdf, dsajkhf, sadjkfh ::= 5; +// asdf, dsajkhf, sadjkfh ::= 5; @@ -1956,6 +1956,7 @@ static bool types_decl(Typer *tr, Declaration *d) { success = false; goto ret; } + d->expr.type = d->type; } else { if (d->expr.type.kind == TYPE_VOID) { /* e.g. x := (fn(){})(); */ |