| Index: lib/src/protobuf/utils.dart
|
| diff --git a/lib/src/protobuf/utils.dart b/lib/src/protobuf/utils.dart
|
| index 364d78f21ff96cb5261ffb871bacbed8b4823a64..6e6482bcdc104e90d5c02aa800f48271b10f0b24 100644
|
| --- a/lib/src/protobuf/utils.dart
|
| +++ b/lib/src/protobuf/utils.dart
|
| @@ -6,6 +6,9 @@ part of protobuf;
|
|
|
| // TODO(antonm): reconsider later if PbList should take care of equality.
|
| bool _deepEquals(lhs, rhs) {
|
| + // Some GeneratedMessages implement Map, so test this first.
|
| + if (lhs is GeneratedMessage) return lhs == rhs;
|
| + if (rhs is GeneratedMessage) return false;
|
| if ((lhs is List) && (rhs is List)) return _areListsEqual(lhs, rhs);
|
| if ((lhs is Map) && (rhs is Map)) return _areMapsEqual(lhs, rhs);
|
| if ((lhs is ByteData) && (rhs is ByteData)) {
|
|
|