<div dir="ltr">Thanks for prompt reply - link is:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><a href="https://bugs.swift.org/browse/SR-5838">https://bugs.swift.org/browse/SR-5838</a></div></div></blockquote></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"> -- Howard.<br></div></div>
<br><div class="gmail_quote">On 5 September 2017 at 11:58, Slava Pestov <span dir="ltr"><<a href="mailto:spestov@apple.com" target="_blank">spestov@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yeah, looks like a bug. Do you mind filing a JIRA?<div><br></div><div>Slava</div><div><br><div><blockquote type="cite"><div><div class="h5"><div>On Sep 4, 2017, at 8:55 PM, Howard Lovatt via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:</div><br class="m_-9102520253899192185Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi All,<div><br></div><div>Is this a compiler bug?</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>struct Box<T> {</div><div> var value: T</div><div> init(_ value: T) { self.value = value }</div><div> /// Unboxing operator.</div><div> static func >> <T>(left: Box<T>, right: inout T?) {</div><div> right = left.value</div><div> }</div><div>}</div><div><br></div><div>var u: String?</div><div>let b = Box("Test")</div><div>b >> &u // ERROR: Cannot convert value of type 'Box<String>' to expected argument type 'Box<_>'</div></blockquote><div><p class="m_-9102520253899192185gmail-p2">Am I missing something?</p><p class="m_-9102520253899192185gmail-p2">Thanks in advance for any help,</p><div><div class="m_-9102520253899192185gmail_signature"> -- Howard.<br></div></div>
</div></div></div></div>
______________________________<wbr>_________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>