<div dir="ltr">Ah, thanks! Do you happen to know of any particular std lib protocol of the form:<div>protocol P : OtherP where OtherP.AT ...</div><div>?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 5, 2017 at 7:53 AM, Xiaodi Wu <span dir="ltr">&lt;<a href="mailto:xiaodi.wu@gmail.com" target="_blank">xiaodi.wu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Replying to swift-users as well, as it&#39;s probably the more appropriate forum.</div><div dir="auto"><br></div><div dir="auto">SE-0142 (Permit where clauses to constrain associated types) is what brought about this feature. It is now used in the standard library.</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div><div class="h5"><div>On Wed, Jul 5, 2017 at 00:26 Jens Persson via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div><div>The following compiles in Swift 4 (but not in Swift 3.1):</div><div><br></div><div><div><div>protocol P1 {</div><div>    associatedtype A</div><div>}</div><div>protocol P2 : P1 where A == Int {</div><div>}</div></div></div><div><br></div>I&#39;ve not been able to find any proposal, discussion or documentation mentioning it so any pointers to such would be greatly appreciated.<div><br></div><div>Also, is this new feature used somewhere in the std lib?</div><div><br></div><div>/Jens</div></div></div></div>
______________________________<wbr>_________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
</blockquote></div></div>
</blockquote></div><br></div>