diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-29 10:00:38 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-29 10:00:38 -0500 |
commit | 65a7e6270d5c97ac01f02a7d16d016eb6f526d51 (patch) | |
tree | 5be98e81a0402f45979324d6c7ab675ec2c64d80 | |
parent | 5c23113aa2631bd4d1ef71c4964bf32f7daf1010 (diff) |
fixed the bug
-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(){})(); */ |