Skip to content
Snippets Groups Projects
Commit cb4c0b8e authored by Adam Welc's avatar Adam Welc
Browse files

Gpbits must be propagated to copies.

parent dddbbefb
Branches
No related tags found
No related merge requests found
......@@ -138,6 +138,7 @@ public final class RFunction extends RSharingAttributeStorage implements RTypedV
}
newFunction.initAttributes(newAttributes);
}
newFunction.gpbits = gpbits;
return newFunction;
}
......
......@@ -55,6 +55,7 @@ public class RS4Object extends RSharingAttributeStorage {
newAttributes.put(attr.getName(), attr.getValue());
}
}
resultS4.gpbits = gpbits;
return resultS4;
}
......
......@@ -161,5 +161,7 @@ public class TestSimpleAttributes extends TestBase {
assertEval("{ x<-matrix(1, ncol=1); y<-c(1,2,3,4); x*y }");
assertEval("{ x<-c(1,2); attr(x, \"foo\")<-\"foo\"; y<-x; attributes(y)<-NULL; x }");
assertEval("{ gen<-function(object) 0; setGeneric(\"gen\"); x<-gen; attr(x, \"valueClass\")<-character(); isS4(x) }");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment