mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
fix: const call bug
This commit is contained in:
parent
477778c9fe
commit
2ddff1512f
6 changed files with 35 additions and 13 deletions
|
@ -665,7 +665,7 @@ impl Context {
|
|||
);
|
||||
let patch = ConstSubr::Builtin(BuiltinConstSubr::new(PATCH, patch_func, patch_t, None));
|
||||
self.register_builtin_const(PATCH, vis.clone(), ValueObj::Subr(patch));
|
||||
let t_resolve_path = nd_func(vec![kw(KW_PATH, Str)], None, mono(GENERIC_MODULE));
|
||||
let t_resolve_path = nd_func(vec![kw(KW_PATH, Str)], None, Str);
|
||||
let resolve_path = ConstSubr::Builtin(BuiltinConstSubr::new(
|
||||
FUNC_RESOLVE_PATH,
|
||||
resolve_path_func,
|
||||
|
@ -673,7 +673,7 @@ impl Context {
|
|||
None,
|
||||
));
|
||||
self.register_builtin_const(FUNC_RESOLVE_PATH, vis.clone(), ValueObj::Subr(resolve_path));
|
||||
let t_resolve_decl_path = nd_func(vec![kw(KW_PATH, Str)], None, mono(GENERIC_MODULE));
|
||||
let t_resolve_decl_path = nd_func(vec![kw(KW_PATH, Str)], None, Str);
|
||||
let resolve_decl_path = ConstSubr::Builtin(BuiltinConstSubr::new(
|
||||
FUNC_RESOLVE_DECL_PATH,
|
||||
resolve_decl_path_func,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue