Skip to content

Commit 340b9ab

Browse files
committed
Merge pull request #542 from alfonsogarciacaro/master
Fix #541
2 parents 230ad69 + bf31b9c commit 340b9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsharp/PatternMatchCompilation.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ let CompilePatternBasic
920920

921921
if nonNil topgtvs then error(InternalError("Unexpected generalized type variables when compiling an active pattern",m));
922922
let rty = apinfo.ResultType g m resTys
923-
let v,vexp = mkCompGenLocal m "activePatternResult" rty
923+
let v,vexp = mkCompGenLocal m ("activePatternResult"^string (newUnique())) rty
924924
if topv.IsMemberOrModuleBinding then
925925
AdjustValToTopVal v topv.ActualParent ValReprInfo.emptyValData;
926926
let argexp = GetSubExprOfInput subexpr

0 commit comments

Comments
 (0)