<div class="chatlog__message-group"> <div id="chatlog__message-container-435997693379215360" class="chatlog__message-container" data-message-id="435997693379215360"> <div class="chatlog__message"> <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/127674083331538944/4893b43ea9ee2231b8ffb8b05c305ce3.png?size=512" alt="Avatar" loading="lazy"></div> <div class="chatlog__message-primary"> <div class="chatlog__header"><span class="chatlog__author" style="color:rgb(155,89,182)" title="norio_nomura" data-user-id="127674083331538944">norio_nomura</span> <a href="/channels/430242233468452865?category=main&channel=swiftbot-sandbox&message_id=435997693379215360"><span class="chatlog__timestamp" title="Wednesday, April 18, 2018 2:59 AM"></span></a><a href="#chatlog__message-container-435997693379215360">4/18/2018 2:59 AM</a></div> <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><a href="https://bugs.swift.org/browse/SR-7450">https://bugs.swift.org/browse/SR-7450</a> より <span class="chatlog__markdown-mention" title="swift42#0507">@swift-4.2.4</span> <code class="chatlog__markdown-pre chatlog__markdown-pre--multiline nohighlight">protocol DictionaryType { associatedtype Key associatedtype Value } protocol A: DictionaryType where Key == Value { static func foo() } extension A { static func foo() { print(type(of: self)) } } extension Dictionary: DictionaryType {} extension Dictionary: A where Key == Value { } extension Array where Element: A { static func foo() { Element.foo() } } [String: String].foo() // Dictionary<String, String> [[String: String]].foo() // Crash</code></span></div> </div> </div> </div> </div>