@Specialization(guards = "doesInherit")
@SuppressWarnings("unused")
protected Object assignInherit(String x, Object value, REnvironment pos, RMissing envir, byte inherits, byte immediate) {
controlVisibility();
REnvironment env = pos;
while (env != null) {
if (env.get(x) != null) {
break;
}
env = env.getParent();
}
try {
if (env != null) {
env.put(x, value);
} else {
REnvironment.globalEnv().put(x, value);
}
} catch (PutException ex) {
throw RError.error(getEncapsulatingSourceSection(), ex);