[SourceKit][PlaceholderExpand] Avoid function signatures when expanding trailing closures of ()->(). rdar://21879249

This commit is contained in:
Xi Ge
2015-12-07 11:46:43 -08:00
parent 825348fdee
commit ab969d14a4
2 changed files with 13 additions and 2 deletions

View File

@@ -49,3 +49,8 @@ func f() {
store.requestAccessToEntityType(<#T##entityType: EKEntityType##EKEntityType#>, completion: nil)
}
// CHECK: store.requestAccessToEntityType(EKEntityType, completion: nil)
func f1() {
bar(<#T##d: () -> ()##() -> ()#>)
}
// CHECK-NOT: bar { () -> () in