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 879e835 + 5b98f8b commit 4d144e6Copy full SHA for 4d144e6
lib/Sema/TypeCheckConstraints.cpp
@@ -1161,7 +1161,7 @@ namespace {
1161
ExprStack.pop_back();
1162
1163
// Mark the direct callee as being a callee.
1164
- if (auto *call = dyn_cast<CallExpr>(expr))
+ if (auto *call = dyn_cast<ApplyExpr>(expr))
1165
markDirectCallee(call->getFn());
1166
1167
// Fold sequence expressions.
test/Constraints/operator.swift
@@ -290,3 +290,9 @@ func rdar_62054241() {
290
return arr.sorted(by: <) // expected-error {{no exact matches in reference to operator function '<'}}
291
}
292
293
+
294
+// SR-11399 - Operator returning IUO doesn't implicitly unwrap
295
+postfix operator ^^^
296
+postfix func ^^^ (lhs: Int) -> Int! { 0 }
297
298
+let x: Int = 1^^^
0 commit comments