Bugifx for Pattern.from_unsafe_text

This commit is contained in:
Bruce Hill 2024-09-03 15:27:13 -04:00
parent 6622fb8089
commit 3c2c1a308b

View File

@ -299,7 +299,8 @@ env_t *new_compilation_unit(CORD *libname)
}
set_binding(namespace_env(env, "Pattern"), "from_unsafe_text",
new(binding_t, .type=Type(FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE), .ret=Type(TextType, .lang="Pattern")),
new(binding_t, .type=Type(FunctionType, .args=new(arg_t, .name="text", .type=TEXT_TYPE),
.ret=Type(TextType, .lang="Pattern", .env=namespace_env(env, "Pattern"))),
.code="(Pattern_t)"));
return env;