mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
354 B
Swift
16 lines
354 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s
|
|
// REQUIRES: objc_interop
|
|
|
|
// https://github.com/apple/swift/issues/49646
|
|
|
|
import Foundation
|
|
|
|
class C : NSObject, NSWobbling {
|
|
func wobble() {}
|
|
func returnMyself() -> Self { return self }
|
|
}
|
|
|
|
func testDynamicOptionalRequirement(_ a: AnyObject) {
|
|
a.optionalRequirement?()
|
|
}
|