Files
swift-mirror/test/Index/kinds_objc.swift
Doug Gregor 363ef63409 [Code completion] Split out tests that require Objective-C interop.
A bunch of tests that technically require Objective-C interop were
not labeled as such, and worked in the absence of Objective-C interop
due to bugs in the type checker.
2018-07-18 21:17:12 -07:00

16 lines
762 B
Swift

// RUN: %target-swift-ide-test -print-indexed-symbols -source-filename %s | %FileCheck %s
// REQUIRES: objc_interop
@objc class TargetForIBAction {}
// CHECK: [[@LINE-1]]:13 | class/Swift | TargetForIBAction | [[TargetForIBAction_USR:.*]] | Def |
class AttrAnnots {
@IBOutlet var iboutletString: AnyObject?
// CHECK: [[@LINE-1]]:17 | instance-property(IB)/Swift | iboutletString |
@IBAction func someibaction(o: TargetForIBAction) {}
// CHECK: [[@LINE-1]]:18 | instance-method(IB)/Swift | someibaction(o:) | {{.*}} | Def,Dyn,RelChild,RelIBType | rel: 2
// CHECK-NEXT: RelIBType | class/Swift | TargetForIBAction | [[TargetForIBAction_USR]]
@GKInspectable var gkString = "gk"
// CHECK: [[@LINE-1]]:22 | instance-property(GKI)/Swift | gkString |
}