Skip to content

Commit

Permalink
added equatable to property info
Browse files Browse the repository at this point in the history
  • Loading branch information
wickwirew committed Jan 4, 2018
1 parent cb8235c commit 3aac2b0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Runtime/Models/PropertyInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,13 @@ public struct PropertyInfo {
}
}
}


extension PropertyInfo: Equatable {
public static func ==(lhs: PropertyInfo, rhs: PropertyInfo) -> Bool {
return lhs.name == rhs.name
&& lhs.type == rhs.type
&& lhs.offset == rhs.offset
&& lhs.ownerType == rhs.ownerType
}
}

0 comments on commit 3aac2b0

Please sign in to comment.