blob: 7002ac19fe599b5ff01bac958a7e19375ee2cddf [file] [log] [blame]
// RUN: %target-swift-emit-silgen -import-objc-header %S/Inputs/external-associated-type-conformance.h %s -enable-sil-ownership | %FileCheck %s
// REQUIRES: objc_interop
extension BadError: LocalizedError {}
// -- The _BridgedStoredNSError conformance...
// CHECK-LABEL: sil_witness_table shared [serialized] BadError: _BridgedStoredNSError module __ObjC {
// -- uses the `Code` type's _ErrorCodeProtocol conformance...
// CHECK: associated_type_protocol (Code: _ErrorCodeProtocol): BadError.Code: _ErrorCodeProtocol module __ObjC
// CHECK: }
// -- so we have to emit that too
// CHECK-LABEL: sil_witness_table shared [serialized] BadError.Code: _ErrorCodeProtocol module __ObjC