mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This should include all of the attributes we care about for the time being. Only the resilience attributes (not designed) and [force_inline] are left unaccounted for. Swift SVN r6767
26 lines
486 B
Swift
26 lines
486 B
Swift
protocol [class_protocol, objc] ObjCProto {
|
|
func doSomething()
|
|
}
|
|
|
|
class [objc] ObjCClass {
|
|
static func classMethod() {}
|
|
func implicitlyObjC() {}
|
|
|
|
var [iboutlet] outlet : ObjCClass
|
|
func [ibaction] performAction() {}
|
|
}
|
|
|
|
class NonObjCClass : ObjCProto {
|
|
func doSomething() {}
|
|
|
|
func [objc] objcMethod() {}
|
|
var [objc] objcProp : ObjCClass
|
|
|
|
subscript [objc] (i : Int) -> () {
|
|
return ()
|
|
}
|
|
|
|
var [iboutlet] outlet : ObjCClass
|
|
func [ibaction] performAction() {}
|
|
}
|