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 d530e36 + 7c5b6d7 commit b642b41Copy full SHA for b642b41
lib/Sema/TypeCheckConstraints.cpp
@@ -1157,7 +1157,7 @@ namespace {
1157
ExprStack.pop_back();
1158
1159
// Mark the direct callee as being a callee.
1160
- if (auto *call = dyn_cast<CallExpr>(expr))
+ if (auto *call = dyn_cast<ApplyExpr>(expr))
1161
markDirectCallee(call->getFn());
1162
1163
// Fold sequence expressions.
test/Constraints/operator.swift
@@ -293,3 +293,9 @@ func rdar_62054241() {
293
// expected-note@-1 {{found candidate with type '(Foo, Foo) -> Bool'}}
294
}
295
296
+
297
+// SR-11399 - Operator returning IUO doesn't implicitly unwrap
298
+postfix operator ^^^
299
+postfix func ^^^ (lhs: Int) -> Int! { 0 }
300
301
+let x: Int = 1^^^
0 commit comments