Skip to content

Commit 7a01077

Browse files
authored
Update CheckIncrementalClasses.fs
1 parent 32c0bc8 commit 7a01077

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/Compiler/Checking/CheckIncrementalClasses.fs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -770,13 +770,13 @@ let MakeCtorForIncrClassConstructionPhase2C(
770770
| Phase2CCtorJustAfterLastLet ->
771771
let binders =
772772
[ match ctorInfo.InstanceCtorSafeInitInfo with
773-
| SafeInitField (rfref, _) ->
773+
| SafeInitField (rfref, _) ->
774774
let setExpr = mkRecdFieldSetViaExprAddr (exprForVal m thisVal, rfref, thisTyInst, mkOne g m, m)
775775
let setExpr = reps.FixupIncrClassExprPhase2C cenv (Some thisVal) safeStaticInitInfo thisTyInst setExpr
776776
let binder = (fun e -> mkSequential setExpr.Range setExpr e)
777777
let isPriorToSuperInit = false
778778
yield (isPriorToSuperInit, binder)
779-
| NoSafeInitInfo ->
779+
| NoSafeInitInfo ->
780780
() ]
781781

782782
([], binders, []), reps
@@ -786,14 +786,13 @@ let MakeCtorForIncrClassConstructionPhase2C(
786786
let cctorInitActions, ctorInitActions, methodBinds = List.unzip3 initActions
787787
(List.concat cctorInitActions, List.concat ctorInitActions, List.concat methodBinds), reps
788788

789-
790-
791789
let takenFieldNames =
792790
[ for b in memberBinds do
793-
yield b.Var.CompiledName g.CompilerGlobalState
794-
yield b.Var.DisplayName
795-
yield b.Var.DisplayNameCoreMangled
796-
yield b.Var.LogicalName ]
791+
b.Var.CompiledName g.CompilerGlobalState
792+
b.Var.DisplayName
793+
b.Var.DisplayNameCoreMangled
794+
b.Var.LogicalName ]
795+
797796
let reps = IncrClassReprInfo.Empty(g, takenFieldNames)
798797

799798
// Bind the IsArg(true) representations of the object constructor arguments and assign them to fields

0 commit comments

Comments
 (0)