Fix redefineWithObjectArgs changing access of original

This commit is contained in:
2025-07-29 16:40:15 -05:00
parent 1d4219a87d
commit 926948498e

View File

@@ -141,7 +141,7 @@ class FieldForms {
throw KissError.fromExp(wholeExp, 'Function or method $field does not exist to be redefined');
}
var access = originalFunction.access;
var access = originalFunction.access.copy();
var newFieldNameExp = switch(args[1].def) {
case MetaExp("public", innerExp):
access.remove(APrivate);