Fix redefineWithObjectArgs changing access of original
This commit is contained in:
@@ -141,7 +141,7 @@ class FieldForms {
|
|||||||
throw KissError.fromExp(wholeExp, 'Function or method $field does not exist to be redefined');
|
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) {
|
var newFieldNameExp = switch(args[1].def) {
|
||||||
case MetaExp("public", innerExp):
|
case MetaExp("public", innerExp):
|
||||||
access.remove(APrivate);
|
access.remove(APrivate);
|
||||||
|
|||||||
Reference in New Issue
Block a user