blob: 88a3e718a9b4648a5a87e5c8e4ac17e42d8b80dc [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 Handler<T> = (T?, Error?) -> Void
func foo<T>(_ handler: Handler<T>?) {}
let _ = Foo<AnyObject>(completionBlock: foo)