Skip to content

Commit ccc318c

Browse files
author
Max Moiseev
committed
[stdlib] Adding @available attribute to Streamable.writeTo(target:)
Fixes [SR-1575](https://bugs.swift.org/browse/SR-1575)
1 parent 7ac6c04 commit ccc318c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/public/core/OutputStream.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,3 +401,10 @@ internal struct _TeeStream<
401401

402402
@available(*, unavailable, renamed: "OutputStream")
403403
public typealias OutputStreamType = OutputStream
404+
405+
extension Streamable {
406+
@available(*, unavailable, renamed: "write(to:)")
407+
public func writeTo<Target : OutputStream>(target: inout Target) {
408+
Builtin.unreachable()
409+
}
410+
}

0 commit comments

Comments
 (0)