Skip to content

Commit

Permalink
Fix used assembly references leg.
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Mar 29, 2022
1 parent 95d08c1 commit d9da29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Portable/Compiler/MethodCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ private static BoundCall GenerateBaseCopyConstructorInitializer(SynthesizedRecor
return null;
}

var constructorUseSiteInfo = CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
var constructorUseSiteInfo = new CompoundUseSiteInfo<AssemblySymbol>(diagnostics, constructor.ContainingAssembly);
constructorUseSiteInfo.Add(baseConstructor.GetUseSiteInfo());
if (Binder.ReportConstructorUseSiteDiagnostics(diagnosticsLocation, diagnostics, suppressUnsupportedRequiredMembersError: constructor.HasSetsRequiredMembers, constructorUseSiteInfo))
{
Expand Down

0 comments on commit d9da29b

Please sign in to comment.