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.
1 parent 176969d commit 0943176Copy full SHA for 0943176
lib/Sema/CSDiagnostics.cpp
@@ -1950,7 +1950,7 @@ bool ContextualFailure::diagnoseConversionToNil() const {
1950
}
1951
1952
// `nil` is passed as an argument to a parameter which doesn't
1953
- // expect it e.g. `foo(a: nil)` or `s[x: nil]` or \S.[x: nil].
+ // expect it e.g. `foo(a: nil)`, `s[x: nil]` or `\S.[x: nil]`.
1954
// FIXME: Find a more robust way of checking this.
1955
if (isa<ApplyExpr>(enclosingExpr) || isa<SubscriptExpr>(enclosingExpr) ||
1956
isa<KeyPathExpr>(enclosingExpr))
0 commit comments