Typecheck inline C code

This commit is contained in:
Bruce Hill 2024-02-25 17:43:52 -05:00
parent 975185c5df
commit 8f5a40b944

View File

@ -643,7 +643,7 @@ type_t *get_type(env_t *env, ast_t *ast)
}
case While: case For: return Type(VoidType);
case InlineCCode: return Type(VoidType);
case Unknown: code_err(ast, "I can't figure out the type of: %W", ast);
}
code_err(ast, "I can't figure out the type of: %s", ast_to_str(ast));