Skip to content

Commit 5b14344

Browse files
committed
no time no time
1 parent 24fc29b commit 5b14344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Distributed/distributed_actor_initialization.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ distributed actor OK6 {
5555

5656
distributed actor OKMulti {
5757

58-
convenience init(y: Int, system: FakeActorSystem) { // ok
58+
convenience init(y: Int, system: FakeActorSystem) { // expected-warning{{initializers in actors are not marked with 'convenience'; this is an error in Swift 6}}{{3-15=}}
5959
self.init(actorSystem: system)
6060
}
6161

6262
}
6363

6464
distributed actor OKMultiDefaultValues {
6565

66-
convenience init(y: Int, system: FakeActorSystem, x: Int = 1234) { // ok
66+
init(y: Int, system: FakeActorSystem, x: Int = 1234) { // ok
6767
self.init(actorSystem: system)
6868
}
6969

0 commit comments

Comments
 (0)