mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ValueDecl::getInterfaceType() asserts if the decl has no interface type; to check if the declaration has been type checked yet, use hasInterfaceType(). Fixes <https://bugs.swift.org/browse/SR-4743>.
20 lines
466 B
Swift
20 lines
466 B
Swift
// RUN: not %target-swift-frontend -typecheck -primary-file %s
|
|
|
|
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() {}
|
|
}
|