throw new DynamicError("err:FORG0006", "Duration values must all be `"
+ firstType + "`, but found `" + toadd.getType() + "`");
}
final PlusOp op = new PlusOp();
op.staticAnalysis(dynEnv.getStaticContext(), sum, toadd);
sum = (DurationValue) op.eval(dynEnv, sum, toadd);
}
final DivOp op = new DivOp();
final XInteger divby = XInteger.valueOf(size);
op.staticAnalysis(dynEnv.getStaticContext(), sum, divby);
return op.eval(dynEnv, sum, divby);