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

Rewritten parameter casts for .cache_class builtin.

parent 088ff23f
Branches
No related tags found
No related merge requests found
......@@ -31,6 +31,11 @@ public abstract class CacheClass extends RBuiltinNode {
@Override
protected void createCasts(CastBuilder casts) {
casts.arg("class").defaultError(RError.Message.GENERIC, "invalid class argument to internal .class_cache").mustBe(stringValue()).asStringVector().findFirst();
// apparently, "extends" does not have to be a string vector (GNU R will not signal this
// error) - but it does not seem to make much sense and it's doubtful if it's worth
// supporting since this is internal function
casts.arg("extends").defaultError(RError.Message.GENERIC, "invalid extends argument to internal .class_cache").mustBe(stringValue()).asStringVector();
}
@TruffleBoundary
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment