Skip to content

Commit 577c971

Browse files
authored
Fix method spec constructor (#186)
***NO_CI***
1 parent dcd06a2 commit 577c971

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MetadataProcessor.Shared/Tables/nanoMethodSpecificationTable.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Diagnostics;
7+
using System.Linq;
78
using Mono.Cecil;
89
using nanoFramework.Tools.MetadataProcessor.Core.Extensions;
910

@@ -65,7 +66,10 @@ public int GetHashCode(MethodSpecification obj)
6566
public nanoMethodSpecificationTable(
6667
IEnumerable<MethodSpecification> items,
6768
nanoTablesContext context)
68-
: base(items, new MemberReferenceComparer(), context)
69+
: base(
70+
items.Distinct(new MemberReferenceComparer()),
71+
new MemberReferenceComparer(),
72+
context)
6973
{
7074
}
7175

0 commit comments

Comments
 (0)