<div class="chatlog__message-group"> <div id="chatlog__message-container-498212187375140865" class="chatlog__message-container" data-message-id="498212187375140865"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/189711109966659584/95280765d1be73ce985dce15ea3585f6.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(237,171,161)" title="omochimetaru" data-user-id="189711109966659584">omochimetaru</span> <a href="/channels/430242233468452865?category=main&channel=swiftbot-sandbox&message_id=498212187375140865"><span class="chatlog__timestamp" title="Saturday, October 6, 2018 7:17 PM"></span></a><a href="#chatlog__message-container-498212187375140865">10/6/2018 7:17 PM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><span class="chatlog__markdown-mention" title="swift42#0507">@swift-4.2.4</span> <code class="chatlog__markdown-pre chatlog__markdown-pre--multiline language-swift">var f: (() -> Void)? class Cat { deinit { f?() } } func main() { let cat = Cat() f = { [weak cat] in print(cat == nil) // true } } main()</code></span> <span class="chatlog__edited-timestamp" title="Saturday, October 6, 2018 7:17 PM">(edited)</span></div> </div> </div> </div> </div>