mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
514 B
Swift
22 lines
514 B
Swift
// RUN: not %target-swift-frontend -typecheck -primary-file %s
|
|
|
|
// https://github.com/apple/swift/issues/47320
|
|
|
|
public struct _UIntBuffer<Storage, Element> {
|
|
var _storage: Storage
|
|
var _bitCount: UInt8
|
|
}
|
|
|
|
protocol _UTFDecoder {
|
|
associatedtype BufferStorage
|
|
associatedtype CodeUnit
|
|
|
|
var buffer: _UIntBuffer<BufferStorage, CodeUnit> { get set }
|
|
}
|
|
|
|
public struct ReverseDecoder : _UTFDecoder {
|
|
public typealias Buffer = _UIntBuffer<BufferStorage, UInt8>
|
|
public var buffer = Buffer()
|
|
public init() {}
|
|
}
|