<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="gmail-p2">Am I missing something?</p><p class="gmail-p2">Thanks in advance for any help,</p><div><div class="gmail_signature"> -- Howard.<br></div></div>
</div></div>