Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0103-sr4743.swift
Slava Pestov 7af399fd51 Sema: Change a getInterfaceType() to hasInterfaceType() in a couple of places
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>.
2017-05-29 00:06:55 -07:00

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() {}
}