Skip to content

Commit 186889b

Browse files
committed
Support IReadOnlyDictionary in IsDictionary check
1 parent 0f4c00e commit 186889b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Equatable.SourceGenerator/EquatableAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private static bool IsDictionary(INamedTypeSymbol targetSymbol)
221221
{
222222
return targetSymbol is
223223
{
224-
Name: "IDictionary",
224+
Name: "IDictionary" or "IReadOnlyDictionary",
225225
IsGenericType: true,
226226
TypeArguments.Length: 2,
227227
TypeParameters.Length: 2,

0 commit comments

Comments
 (0)