Set a builtin methods func pointer.

Forgetting to set the func pointer is what caused the bogus "does not
respond to" message for -error:.
This commit is contained in:
Bill Currie 2012-12-16 12:01:12 +09:00
parent aa14271764
commit d6ec944e5f

View file

@ -1635,6 +1635,7 @@ methoddef
method = class_find_method (current_class, method);
sym = method_symbol (current_class, method);
build_builtin_function (sym, $5, 1);
method->func = sym->s.func;
method->def = sym->s.func->def;
}
;