Skip to content

Commit bf31b9c

Browse files
Fix #541
1 parent be9ea0b commit bf31b9c

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)