mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
Fix builtin types methods
This commit is contained in:
parent
c56ef64576
commit
8cdc735486
12 changed files with 180 additions and 7 deletions
|
@ -278,7 +278,7 @@ impl Context {
|
|||
);
|
||||
self.register_builtin_py_impl(FUNC_ROUND, t_round, Immutable, vis, Some(FUNC_ROUND));
|
||||
self.register_builtin_py_impl(FUNC_SORTED, t_sorted, Immutable, vis, Some(FUNC_SORTED));
|
||||
self.register_builtin_py_impl(FUNC_STR, t_str, Immutable, vis, Some(FUNC_STR));
|
||||
self.register_builtin_py_impl(FUNC_STR, t_str, Immutable, vis, Some(FUNC_STR__));
|
||||
self.register_builtin_py_impl(FUNC_SUM, t_sum, Immutable, vis, Some(FUNC_SUM));
|
||||
self.register_builtin_py_impl(FUNC_ZIP, t_zip, Immutable, vis, Some(FUNC_ZIP));
|
||||
let name = if cfg!(feature = "py_compatible") {
|
||||
|
|
|
@ -225,6 +225,7 @@ const FUNC_INT__: &str = "int__";
|
|||
const FUNC_FLOAT: &str = "float";
|
||||
const FUNC_BOOL: &str = "bool";
|
||||
const FUNC_STR: &str = "str";
|
||||
const FUNC_STR__: &str = "str__";
|
||||
const FUNC_TYPE: &str = "type";
|
||||
const CODE_TYPE: &str = "CodeType";
|
||||
const MODULE_TYPE: &str = "ModuleType";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue