Skip to content

Commit 95f2022

Browse files
afscromedanielpalme
authored andcommitted
Fix merging of classes with non unique names.
Extends the fix from 78a1a92 to also apply to merging.
1 parent 78a1a92 commit 95f2022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReportGenerator.Core/Parser/Analysis/Assembly.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ internal void Merge(Assembly assembly)
177177

178178
foreach (var @class in assembly.classes)
179179
{
180-
var existingClass = this.classes.FirstOrDefault(c => c.Name == @class.Name);
180+
var existingClass = this.classes.FirstOrDefault(c => c.Equals(@class));
181181

182182
if (existingClass != null)
183183
{

0 commit comments

Comments
 (0)