Skip to content

Commit 2a9d56f

Browse files
committed
[Test] Add a test case
1 parent 6bf80fb commit 2a9d56f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}

0 commit comments

Comments
 (0)