We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23525d9 + 9577d98 commit 7a3a1e3Copy full SHA for 7a3a1e3
test/SourceKit/CodeExpand/code-expand.swift
@@ -79,3 +79,5 @@ func f1() {
79
bar(a : {}}, <#T##d: () -> ()##() -> ()#>)
80
}
81
// CHECK: bar(a : {}}, <#T##d: () -> ()##() -> ()#>)
82
+
83
+foo(withDuration: 1, animations: <#T##() -> Void#>)
tools/SourceKit/lib/SwiftLang/SwiftEditor.cpp
@@ -1447,7 +1447,7 @@ class PlaceholderExpansionScanner {
1447
bool containClosure(Expr *E) {
1448
if (E->getStartLoc().isInvalid())
1449
return false;
1450
- EditorPlaceholderExpr *Found;
+ EditorPlaceholderExpr *Found = nullptr;
1451
ClosureInfo Info;
1452
ClosureTypeWalker ClosureWalker(SM, Info);
1453
PlaceholderFinder Finder(E->getStartLoc(), Found);
0 commit comments