Skip to content

Commit 853d3c8

Browse files
committed
[SE-0404] Make test for protocol nested in actor conditionally-available
1 parent 69c5704 commit 853d3c8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/decl/nested/protocol.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,19 @@ class OuterClass {
4444
protocol InnerProtocol : OuterClass { }
4545
}
4646

47+
// Protocols can be nested in actors.
48+
49+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
50+
actor SomeActor {
51+
protocol Proto {}
52+
}
53+
4754
// Deeply nested.
4855

4956
enum Level0 {
5057
struct Level1 {
5158
class Level2 {
52-
actor Level3 {
59+
enum Level3 {
5360
struct Level4 {
5461
class Level5 {
5562
protocol DeeplyNested {

0 commit comments

Comments
 (0)