diff --git a/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs b/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs index fa62c3d18bfb0..dad5cf02dfd9a 100644 --- a/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs +++ b/src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs @@ -2142,7 +2142,7 @@ private static BoundCall GenerateBaseCopyConstructorInitializer(SynthesizedRecor return null; } - var constructorUseSiteInfo = CompoundUseSiteInfo.DiscardedDependencies; + var constructorUseSiteInfo = new CompoundUseSiteInfo(diagnostics, constructor.ContainingAssembly); constructorUseSiteInfo.Add(baseConstructor.GetUseSiteInfo()); if (Binder.ReportConstructorUseSiteDiagnostics(diagnosticsLocation, diagnostics, suppressUnsupportedRequiredMembersError: constructor.HasSetsRequiredMembers, constructorUseSiteInfo)) {