From: Brendan Hansen Date: Fri, 21 Apr 2023 21:33:27 +0000 (-0500) Subject: added: functions can be constructed using structure literals X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=b2d09d8a504321ee38ced6ba924fc423733d3179;p=onyx.git added: functions can be constructed using structure literals --- diff --git a/compiler/src/types.c b/compiler/src/types.c index e311ebbe..923ef8df 100644 --- a/compiler/src/types.c +++ b/compiler/src/types.c @@ -1613,6 +1613,7 @@ b32 type_is_sl_constructable(Type* type) { case Type_Kind_Struct: return 1; case Type_Kind_Slice: return 1; case Type_Kind_DynArray: return 1; + case Type_Kind_Function: return 1; default: return 0; } }