Skip to content

Commit 230ad69

Browse files
committed
Merge pull request #540 from alfonsogarciacaro/master
Fix #539
2 parents 1586e6d + be9ea0b commit 230ad69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsharp/TypeRelations.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2249,7 +2249,7 @@ let BuildNewDelegateExpr (eventInfoOpt:EventInfo option, g, amap, delegateTy, in
22492249
if List.exists (isByrefTy g) delArgTys then
22502250
error(Error(FSComp.SR.tcFunctionRequiresExplicitLambda(List.length delArgTys),m))
22512251

2252-
let delArgVals = delArgTys |> List.map (fun argty -> fst (mkCompGenLocal m "delegateArg" argty))
2252+
let delArgVals = delArgTys |> List.mapi (fun i argty -> fst (mkCompGenLocal m ("delegateArg"^string i) argty))
22532253
let expr =
22542254
let args =
22552255
match eventInfoOpt with

0 commit comments

Comments
 (0)