blob: 24312cdd4f25a7b48937ee57ab7397c07059c520 [file] [log] [blame]
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -emit-ir -g -verify
// REQUIRES: objc_interop
import Swift
import Foundation
import objc_generics
public extension GenericClass {
func method() {}
class func classMethod() {}
}
public func takesFunction<T : AnyObject>(fn: @escaping (GenericClass<T>) -> ()) -> (GenericClass<T>) -> () {
let copy = fn
return copy
}