Skip to content

Commit 86e30e0

Browse files
committed
[IDE] Tests: That that nonisolated has nonsending completion
1 parent 3e36c42 commit 86e30e0

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

test/IDE/complete_nonisolated.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %batch-code-completion
2+
3+
// NONISOLATED-DAG: Keyword/None: unsafe; name=unsafe
4+
// NONISOLATED-DAG: Keyword/None: nonsending; name=nonsending
5+
6+
nonisolated(#^NONISOLATED_UNSAFE_TOP_LEVEL?check=NONISOLATED^#) var count = 0
7+
8+
struct MyStruct {
9+
nonisolated(#^NONISOLATED_UNSAFE_IN_STRUCT?check=NONISOLATED^#) var prop = 0
10+
}

test/IDE/complete_nonisolated_unsafe.swift

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)