<div dir="ltr">On Tue, Dec 8, 2015 at 11:52 AM, Daniel Valls Estella via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Just to clarify.<div><br></div><div>I think maybe it’s better to move away class constrain from protocol definitions </div><div>and enable such type of restriction when requesting elements alongside with type/protocol conformance requirements.</div><div><br></div><div><div style="word-wrap:break-word"><div><font face="Courier New">func doSomething(localvar: MyProtocol class)</font></div></div></div></div></blockquote><div><br></div><div>Doesn&#39;t the following work? <br></div><div><br></div><div>    func doSomething(localvar: protocol&lt;MyProtocol, class&gt;)</div><div><br></div><div>You could, of course, use a typealias or protocol inheritance to avoid &quot;protocol&lt;...&gt;&quot;. </div></div></div></div>