@@ -42,17 +47,22 @@ public abstract class FastRSourceInfo extends RBuiltinNode.Arg1 {
static{
Castscasts=newCasts(FastRSourceInfo.class);
casts.arg("fun").defaultError(RError.Message.GENERIC,"Only functions are allowed.").mustBe(RFunction.class);
casts.arg("fun").defaultError(RError.Message.GENERIC,"Only functions are allowed.").mustBe(instanceOf(RFunction.class).or(instanceOf(RLanguage.class)));