mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix!: let return/yield
to be a private method
This commit is contained in:
parent
9d0b9e042b
commit
1a056b1b0e
2 changed files with 4 additions and 4 deletions
|
@ -2926,7 +2926,7 @@ impl Context {
|
|||
FUNC_RETURN,
|
||||
t_return,
|
||||
Immutable,
|
||||
Visibility::BUILTIN_PUBLIC,
|
||||
Visibility::BUILTIN_PRIVATE,
|
||||
);
|
||||
let mut g_generator = Self::builtin_mono_class(GENERIC_GENERATOR, 2);
|
||||
g_generator.register_superclass(mono(GENERIC_CALLABLE), &g_callable);
|
||||
|
@ -2935,7 +2935,7 @@ impl Context {
|
|||
FUNC_YIELD,
|
||||
t_yield,
|
||||
Immutable,
|
||||
Visibility::BUILTIN_PUBLIC,
|
||||
Visibility::BUILTIN_PRIVATE,
|
||||
);
|
||||
/* Proc */
|
||||
let mut proc = Self::builtin_mono_class(PROC, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue