Skip to content

Commit

Permalink
[SE-0404] Make test for protocol nested in actor conditionally-available
Browse files Browse the repository at this point in the history
  • Loading branch information
karwa committed Oct 6, 2023
1 parent 69c5704 commit 853d3c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/decl/nested/protocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,19 @@ class OuterClass {
protocol InnerProtocol : OuterClass { }
}

// Protocols can be nested in actors.

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
actor SomeActor {
protocol Proto {}
}

// Deeply nested.

enum Level0 {
struct Level1 {
class Level2 {
actor Level3 {
enum Level3 {
struct Level4 {
class Level5 {
protocol DeeplyNested {
Expand Down

0 comments on commit 853d3c8

Please sign in to comment.