mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
16 lines
762 B
Swift
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 |
|
|
}
|
|
|