blob: e80973a92e4aa54116bbd7f98bfc164aa2aeea2b [file] [log] [blame]
// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/typedef-with-generic-param.h 2>&1
// REQUIRES: OS=macosx
typealias Result<T> = (T?, Error?)
typealias Handler<T> = (Result<T>) -> Void
func foo<T>(_ handler: Handler<T>?) {}
let _ = Foo<AnyObject>(completionBlock: foo)