// RUN: %target-swift-frontend %s -emit-ir // SR-9954 / rdar://problem/48223824 // Rejects well-formed that triggered a fallback diagnostic due to a bad // substitution. struct GenericThing { init (closure: (String)->()) { } } struct ThingHolder { func acceptThing (thingGenerator: ()->GenericThing) { } } struct A { } func demo (thingHolder: ThingHolder) { typealias Thing = GenericThing thingHolder.acceptThing { Thing { string in } } }