<div dir="ltr">Yeah I want a protocol (In this case Unit) expression that says if the class implementing this protocol has an associated type which is a SignedIntegerType and it is initialized with a SignedIntegerType. <div><br></div><div>Then it should set the property value (Which should be the same type as the assosiated type) with that SignedIntegerType</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 4:33 PM, Guillaume Lessard <span dir="ltr">&lt;<a href="mailto:glessard@tffenterprises.com" target="_blank">glessard@tffenterprises.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can do that if your constraining protocol defines an initializer with the desired signature.<br>
I tried with both a struct extension and a protocol extension, no problem.<br>
<br>
Is this about modifying the interface of SignedIntegerType, then?<br>
<span class="HOEnZb"><font color="#888888"><br>
Guillaume Lessard<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><span style="font-size:16px;line-height:19.2px"></span><span style="font-size:12.8px"> Wizard</span><br></div><div><a href="mailto:james@supmenow.com" target="_blank">james@supmenow.com</a></div><div>+44 7523 279 698</div></div></div></div></div></div>
</div>