mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This function (and getTypeOfMemberReference) deserve a deeper cleanup, but for the moment lets unblock a compatibility test. Fixes SR-7098 / rdar://problem/38394645
14 lines
306 B
Swift
14 lines
306 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
class C : NSObject, NSWobbling {
|
|
func wobble() {}
|
|
func returnMyself() -> Self { return self }
|
|
}
|
|
|
|
func testDynamicOptionalRequirement(_ a: AnyObject) {
|
|
a.optionalRequirement?()
|
|
}
|