Skip to content

[Distributed] actor class is now banned, remove distributed actor class tests #37557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions test/Distributed/distributed_actor_is_experimental.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ actor SomeActor {}

distributed actor DA {} // expected-error{{'_Distributed' module not imported, required for 'distributed actor'}}
// expected-error@-1{{class 'DA' has no initializers}}
distributed actor class DAC {} // expected-error{{'_Distributed' module not imported, required for 'distributed actor'}}
// expected-error@-1{{class 'DAC' has no initializers}}
// expected-warning@-2{{'actor class' has been renamed to 'actor'}}

actor A {
func normal() async {}
Expand Down
10 changes: 0 additions & 10 deletions test/Distributed/distributed_actor_isolation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ distributed class ClassNope {} // expected-error{{'distributed' can only be appl
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
distributed enum EnumNope {} // expected-error{{distributed' modifier cannot be applied to this declaration}}

@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
distributed actor class DistributedActor_0 { // expected-warning{{'actor class' has been renamed to 'actor'}}
distributed func okey() {}
}

@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
extension DistributedActor_0 {
static func _remote_okey(actor: DistributedActor_0) async throws {}
}

@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
distributed actor DistributedActor_1 {

Expand Down