From 89754ac89dd1d568ab0ff14d145cae259d9db66f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 18:04:35 -0400 Subject: Make it a bit more ergonomic to make function types --- src/environment.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index a6a450e8..21d3db9b 100644 --- a/src/environment.c +++ b/src/environment.c @@ -497,8 +497,7 @@ env_t *global_env(void) #undef ADD_CONSTRUCTORS set_binding(namespace_env(env, "Path"), "from_text", - Type(FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE), - .ret=PATH_TYPE), + NewFunctionType(PATH_TYPE, {.name="text", .type=TEXT_TYPE}), "Path$from_text"); struct { -- cgit v1.2.3