diff --git a/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs b/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs index 2fae5843b925ed1690932d52692573dd4ce185b6..82135085cad14fb15ab62f799ff5ccc9606afd10 100644 --- a/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs +++ b/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs @@ -1375,7 +1375,7 @@ private BoundStatement ChainImplicitStructConstructor(MethodSymbol methodSymbol, while (index >= hoistedVariables.Count) { // Empty slots may be present if variables were deleted during EnC. - hoistedVariables.Add(new EncHoistedLocalInfo()); + hoistedVariables.Add(new EncHoistedLocalInfo(true)); } hoistedVariables[index] = new EncHoistedLocalInfo(field.SlotDebugInfo, (Cci.ITypeReference)field.Type); diff --git a/src/Compilers/Core/Portable/Emit/EditAndContinue/EncHoistedLocalInfo.cs b/src/Compilers/Core/Portable/Emit/EditAndContinue/EncHoistedLocalInfo.cs index afd66f95cbaa217c4f43811d5f70c4ad3e33220f..2a51a0d80ae61453fb5bfce678bb97eca2ff2481 100644 --- a/src/Compilers/Core/Portable/Emit/EditAndContinue/EncHoistedLocalInfo.cs +++ b/src/Compilers/Core/Portable/Emit/EditAndContinue/EncHoistedLocalInfo.cs @@ -13,7 +13,7 @@ internal struct EncHoistedLocalInfo : IEquatable public readonly LocalSlotDebugInfo SlotInfo; public readonly Cci.ITypeReference Type; - public EncHoistedLocalInfo() + public EncHoistedLocalInfo(bool ignored) { SlotInfo = new LocalSlotDebugInfo(SynthesizedLocalKind.EmitterTemp, LocalDebugId.None); Type = null;