// RUN: %target-run-simple-swift // REQUIRES: objc_interop // REQUIRES: executable_test // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime import Foundation final class Storage { weak var object: T? init(object: T) { self.object = object } } @objc protocol MyProtocol {} typealias MyStorage = Storage class Gadget: NSObject, MyProtocol { func testit() { _ = MyStorage(object: self) } } let gadget = Gadget() gadget.testit()