<div class="chatlog__message-group"> <div id="chatlog__message-container-475985100501286914" class="chatlog__message-container" data-message-id="475985100501286914"> <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/375206337937801216?category=main&channel=swift-zatsu&message_id=475985109653127178"><span class="chatlog__timestamp" title="Monday, August 6, 2018 11:14 AM"></span></a><a href="#chatlog__message-container-475985100501286914">8/6/2018 11:14 AM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><code class="chatlog__markdown-pre chatlog__markdown-pre--multiline language-swift">protocol P { associatedtype T func f(_ g: @escaping (T) -> Void) } class C<S>: P { typealias T = S private let _f: (@escaping (S) -> Void) -> Void init<Q: P>(q: Q) where Q.T == T { // Error: cannot assign value of type '((S) -> Void) -> Void' to type '((S) -> Void) -> Void' self._f = { g -> Void in q.f(g) } } func f(_ g: @escaping (S) -> Void) { self._f(g) } }</code></span></div> </div> </div> </div> <div id="chatlog__message-container-475985109653127178" class="chatlog__message-container" data-message-id="475985109653127178"> <div class="chatlog__message"> <div class="chatlog__message-aside"> <div class="chatlog__short-timestamp" title="Monday, August 6, 2018 11:14 AM">11:14 AM</div> </div> <div class="chatlog__message-primary"> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve">どぞ</span></div> </div> </div> </div> </div>