<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yeah, looks like a bug. Do you mind filing a JIRA?<div class=""><br class=""></div><div class="">Slava</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 4, 2017, at 8:55 PM, Howard Lovatt via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi All,<div class=""><br class=""></div><div class="">Is this a compiler bug?</div><div class=""><br class=""></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px" class=""><div class="">struct Box<T> {</div><div class=""> var value: T</div><div class=""> init(_ value: T) { self.value = value }</div><div class=""> /// Unboxing operator.</div><div class=""> static func >> <T>(left: Box<T>, right: inout T?) {</div><div class=""> right = left.value</div><div class=""> }</div><div class="">}</div><div class=""><br class=""></div><div class="">var u: String?</div><div class="">let b = Box("Test")</div><div class="">b >> &u // ERROR: Cannot convert value of type 'Box<String>' to expected argument type 'Box<_>'</div></blockquote><div class=""><p class="gmail-p2">Am I missing something?</p><p class="gmail-p2">Thanks in advance for any help,</p><div class=""><div class="gmail_signature"> -- Howard.<br class=""></div></div>
</div></div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>