Files
swift-mirror/test/Index/objc_conformances.swift
Slava Pestov 28c5ad3f08 Index: Don't crash if an optional requirement is missing its witness
Possibly fixes <rdar://problem/44499860>.
2018-09-18 20:59:30 -07:00

18 lines
597 B
Swift

// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -print-indexed-symbols -source-filename %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
// Make sure we properly handle missing optional requirements.
@objc protocol P {
@objc optional func f()
func g()
}
class C : P {
@objc func g() {}
// CHECK: [[@LINE-1]]:14 | instance-method/Swift | g() | s:14swift_ide_test1CC1gyyF | Def,Dyn,RelChild,RelOver | rel: 2
// CHECK: RelOver | instance-method/Swift | g() | c:@M@swift_ide_test@objc(pl)P(im)g
// CHECK: RelChild | class/Swift | C | s:14swift_ide_test1CC
}