diff --git a/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs b/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs index e676ecbad85d9ace5b47c8f5f6686980b71d1c17..8a1d17f5439e6d56e41faa357e19942cac5a73d9 100644 --- a/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs +++ b/src/Compilers/CSharp/Portable/FlowAnalysis/NullableWalker.cs @@ -2122,7 +2122,7 @@ private void VisitStatementsWithLocalFunctions(BoundBlock block) // The starting state is the top state, but with captured // variables set according to Joining the state at all the // local function use sites - State = TopState().Clone(); + State = TopState(); for (int slot = 1; slot < localFunctionState.StartingState.Capacity; slot++) { var symbol = variableBySlot[RootSlot(slot)].Symbol;