Hi All,
Is this a compiler bug?
struct Box<T> {
var value: T
init(_ value: T) { self.value = value }
/// Unboxing operator.
static func >> <T>(left: Box<T>, right: inout T?) {
right = left.value
}
}
var u: String?
let b = Box("Test")
b >> &u // ERROR: Cannot convert value of type 'Box<String>' to expected
argument type 'Box<_>'
Am I missing something?
Thanks in advance for any help,
-- Howard.
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users