fix!: let return/yield to be a private method

This commit is contained in:
Shunsuke Shibayama 2023-10-15 13:51:09 +09:00
parent 9d0b9e042b
commit 1a056b1b0e
2 changed files with 4 additions and 4 deletions

View file

@ -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);