mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: add special namespaces module/global
This commit is contained in:
parent
c4a0efae08
commit
730886021e
29 changed files with 349 additions and 193 deletions
|
@ -21,7 +21,7 @@ impl Context {
|
|||
// 型境界はすべて各サブルーチンで定義する
|
||||
// push_subtype_boundなどはユーザー定義APIの型境界決定のために使用する
|
||||
pub(super) fn init_builtin_traits(&mut self) {
|
||||
let vis = if cfg!(feature = "py_compat") {
|
||||
let vis = if PYTHON_MODE {
|
||||
Visibility::BUILTIN_PUBLIC
|
||||
} else {
|
||||
Visibility::BUILTIN_PRIVATE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue