Project

Profile

Help

Revision 1f54225f

Added by O'Neil Delpratt almost 8 years ago

Fix of bug issue #1997

View differences:

latest9.5/hej/net/sf/saxon/expr/instruct/ForEach.java
234 234
        action = doPromotion(action, offer);
235 235

  
236 236
        if (offer.containingExpression instanceof LetExpression) {
237
            ((LetExpression) offer.containingExpression).setEvaluationMode(ExpressionTool.MAKE_MEMO_CLOSURE);
237 238
            offer.containingExpression =
238 239
                    visitor.optimize(offer.containingExpression, contextItemType);
239 240
        }

Also available in: Unified diff