File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1412,6 +1412,8 @@ void TypeChecker::checkIgnoredExpr(Expr *E) {
1412
1412
fn = FVE->getSubExpr ();
1413
1413
} else if (auto dotSyntaxRef = dyn_cast<DotSyntaxBaseIgnoredExpr>(fn)) {
1414
1414
fn = dotSyntaxRef->getRHS ();
1415
+ } else if (auto fnConvExpr = dyn_cast<FunctionConversionExpr>(fn)) {
1416
+ fn = fnConvExpr->getSubExpr ();
1415
1417
} else {
1416
1418
break ;
1417
1419
}
Original file line number Diff line number Diff line change
1
+ // RUN: %target-typecheck-verify-swift -disable-availability-checking
2
+ // REQUIRES: concurrency
3
+
4
+ // https://github.com/apple/swift/issues/60276
5
+
6
+ @discardableResult @MainActor
7
+ func mainActorAsyncDiscardable( ) async -> Int { 0 }
8
+
9
+ func consumesMainActorAsyncDiscardable( ) async {
10
+ await mainActorAsyncDiscardable ( ) // ok
11
+ }
You can’t perform that action at this time.
0 commit comments