<div class="chatlog__message-group"> <div id="chatlog__message-container-663755914473635840" class="chatlog__message-container" data-message-id="663755914473635840"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/293572563010060288/92f572b5e1ef6656a55498787c15a5ad.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(231,76,60)" title="tarunon" data-user-id="293572563010060288">tarunon</span> <a href="/channels/430242233468452865?category=main&channel=swiftbot-sandbox&message_id=663755914473635840"><span class="chatlog__timestamp" title="Monday, January 6, 2020 2:49 PM"></span></a><a href="#chatlog__message-container-663755914473635840">1/6/2020 2:49 PM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><span class="chatlog__markdown-mention" title="swift51#2395">@swift-5.1.5</span> <code class="chatlog__markdown-pre chatlog__markdown-pre--multiline language-swift">protocol AnyEquatableBase { associatedtype Value var value: Value { get } func isEqual(to other: Self) -> Bool } extension AnyEquatableBase { func isEqual(to other: Self) -> Bool { false } } extension AnyEquatableBase where Value: Equatable { func isEqual(to other: Self) -> Bool { value == other.value } } struct AnyEquatable<T>: AnyEquatableBase { var value: T } print(AnyEquatable(value: "abc" as Any).isEqual(to: AnyEquatable(value: "abc" as Any)))</code></span></div> </div> </div> </div> </div>