From e6893fe38972d2869042413a70601e6e40e0c6ab Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 20 Oct 2019 21:54:12 -0400 Subject: mostly fixed compile time new --- types.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'types.c') diff --git a/types.c b/types.c index fda1afa..1a92427 100644 --- a/types.c +++ b/types.c @@ -445,10 +445,9 @@ static Status type_cast_status(Type *from, Type *to) { return STATUS_NONE; if (to->kind == TYPE_FN) return STATUS_WARN; + /* TODO: Cast from ptr to arr */ return STATUS_ERR; case TYPE_ARR: - if (to->kind == TYPE_PTR && type_eq(from->arr.of, to->ptr)) - return STATUS_NONE; return STATUS_ERR; case TYPE_SLICE: if (to->kind == TYPE_PTR && type_eq(from->slice, to->ptr)) -- cgit v1.2.3