@@ -2619,9 +2619,9 @@ and OptimizeApplication cenv env (f0,f0ty,tyargs,args,m) =
26192619 | _ ->
26202620 match expr' with
26212621 // Rewrite Seq.map f (Seq.map g) xs into Seq.map (fun x -> f(g x)) xs
2622- | Expr.App( Expr.Val( valRef,_,_) as outerSeqMap, ttype1,[_; t12 ],
2622+ | Expr.App( Expr.Val( valRef,_,_) as outerSeqMap, ttype1,[_; fOutType ],
26232623 [( Expr.Lambda(_, None, None,_,_, m1, fRetType) as f)
2624- Expr.App( Expr.Val( valRef2,_,_),_,[ t21 ;_],
2624+ Expr.App( Expr.Val( valRef2,_,_),_,[ gInType ;_],
26252625 [ Expr.Lambda(_, None, None, gVals, g,_, gRetType)
26262626 rest],_)], m2) when
26272627 valRefEq cenv.g valRef cenv.g.seq_ map_ vref &&
@@ -2630,7 +2630,7 @@ and OptimizeApplication cenv env (f0,f0ty,tyargs,args,m) =
26302630 let newApp = Expr.App( f, TType_ fun( gRetType, fRetType),[],[ g], m2)
26312631
26322632 let reduced =
2633- Expr.App( outerSeqMap, ttype1,[ t21 ; t12 ],
2633+ Expr.App( outerSeqMap, ttype1,[ gInType ; fOutType ],
26342634 [ Expr.Lambda ( newUnique(), None, None, gVals, newApp, m1, gRetType)
26352635 rest], m2)
26362636
0 commit comments