Skip to content

Commit

Permalink
Fix merging of classes with non unique names.
Browse files Browse the repository at this point in the history
Extends the fix from 78a1a92 to also apply to merging.
  • Loading branch information
afscrome committed Sep 14, 2024
1 parent 78a1a92 commit 86f7a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReportGenerator.Core/Parser/Analysis/Assembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ internal void Merge(Assembly assembly)

foreach (var @class in assembly.classes)
{
var existingClass = this.classes.FirstOrDefault(c => c.Name == @class.Name);
var existingClass = this.classes.FirstOrDefault(c => c.Equals(@class));

if (existingClass != null)
{
Expand Down

0 comments on commit 86f7a8a

Please sign in to comment.