Files
swift-mirror/test/DebugInfo/objc_generic_class_debug_info.swift
2018-06-26 16:56:33 -07:00

19 lines
404 B
Swift

// 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 {
@objc func method() {}
@objc class func classMethod() {}
}
public func takesFunction<T : AnyObject>(fn: @escaping (GenericClass<T>) -> ()) -> (GenericClass<T>) -> () {
let copy = fn
return copy
}