From 3e23ea6a67e4bbfea4dc667beb6285a90dff2877 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Nov 2024 14:57:58 -0500 Subject: Improve handling of update assignments --- types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'types.c') diff --git a/types.c b/types.c index 75a3797b..83effd0d 100644 --- a/types.c +++ b/types.c @@ -135,7 +135,7 @@ bool type_is_a(type_t *t, type_t *req) return false; } -static type_t *non_optional(type_t *t) +type_t *non_optional(type_t *t) { return t->tag == OptionalType ? Match(t, OptionalType)->type : t; } -- cgit v1.2.3