We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df9776 commit 6a133adCopy full SHA for 6a133ad
Sources/CustomDump/Internal/Mirror.swift
@@ -27,11 +27,11 @@ extension Mirror {
27
}
28
29
func isMirrorEqual(_ lhs: Any, _ rhs: Any) -> Bool {
30
- let lhsType = type(of: lhs)
31
- if lhsType is AnyClass, lhsType == type(of: rhs), lhs as AnyObject === rhs as AnyObject {
32
- return true
33
- }
34
guard let lhs = lhs as? any Equatable else {
+ let lhsType = type(of: lhs)
+ if lhsType is AnyClass, lhsType == type(of: rhs), lhs as AnyObject === rhs as AnyObject {
+ return true
+ }
35
let lhsMirror = Mirror(customDumpReflecting: lhs)
36
let rhsMirror = Mirror(customDumpReflecting: rhs)
37
guard
0 commit comments