Skip to content

Commit

Permalink
Fix Cysharp#58 IsCompatibleObject()(same as Cysharp#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerodev1200 committed Aug 30, 2024
1 parent b69f32c commit d35fbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObservableCollections/SynchronizedViewList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ TView IList<TView>.this[int index]

static bool IsCompatibleObject(object? value)
{
return value is T || value == null && default(T) == null;
return value is TView || value is T || value == null && default(T) == null;
}

public bool IsReadOnly => true;
Expand Down

0 comments on commit d35fbcf

Please sign in to comment.