@@ -41,67 +41,6 @@ struct MissingRemoteCall: DistributedActorSystem {
41
41
}
42
42
}
43
43
44
- struct MissingRemoteCall_missingInout_on_encoder : DistributedActorSystem {
45
- // expected-error@-1{{struct 'MissingRemoteCall_missingInout_on_encoder' is missing witness for protocol requirement 'remoteCall'}}
46
- // expected-note@-2{{protocol 'MissingRemoteCall_missingInout_on_encoder' requires function 'remoteCall' with signature:}}
47
-
48
- // expected-error@-4{{struct 'MissingRemoteCall_missingInout_on_encoder' is missing witness for protocol requirement 'remoteCallVoid'}}
49
- // expected-note@-5{{protocol 'MissingRemoteCall_missingInout_on_encoder' requires function 'remoteCallVoid' with signature:}}
50
-
51
- typealias ActorID = ActorAddress
52
- typealias InvocationDecoder = FakeInvocationDecoder
53
- typealias InvocationEncoder = FakeInvocationEncoder
54
- typealias SerializationRequirement = Codable
55
- typealias ResultHandler = FakeResultHandler
56
-
57
- func resolve< Act> ( id: ActorID , as actorType: Act . Type )
58
- throws -> Act ? where Act: DistributedActor {
59
- return nil
60
- }
61
-
62
- func assignID< Act> ( _ actorType: Act . Type ) -> ActorID
63
- where Act: DistributedActor {
64
- ActorAddress ( parse: " fake://123 " )
65
- }
66
-
67
- func actorReady< Act> ( _ actor : Act )
68
- where Act: DistributedActor ,
69
- Act. ID == ActorID {
70
- }
71
-
72
- func resignID( _ id: ActorID ) {
73
- }
74
-
75
- func remoteCall< Act, Err, Res> (
76
- on actor : Act ,
77
- target: RemoteCallTarget ,
78
- invocation: InvocationEncoder , // MISSING 'inout'
79
- throwing: Err . Type ,
80
- returning: Res . Type
81
- ) async throws -> Res
82
- where Act: DistributedActor ,
83
- Act. ID == ActorID ,
84
- Err: Error ,
85
- Res: SerializationRequirement {
86
- fatalError ( " NOT IMPLEMENTED \( #function) " )
87
- }
88
-
89
- func remoteCallVoid< Act, Err> (
90
- on actor : Act ,
91
- target: RemoteCallTarget ,
92
- invocation: InvocationEncoder , // MISSING 'inout'
93
- throwing: Err . Type
94
- ) async throws
95
- where Act: DistributedActor ,
96
- Act. ID == ActorID ,
97
- Err: Error {
98
- fatalError ( " NOT IMPLEMENTED \( #function) " )
99
- }
100
-
101
- func makeInvocationEncoder( ) -> InvocationEncoder {
102
- }
103
- }
104
-
105
44
struct RemoteCallMutating : DistributedActorSystem {
106
45
// expected-error@-1{{struct 'RemoteCallMutating' is missing witness for protocol requirement 'remoteCall'}}
107
46
// expected-note@-2{{protocol 'DistributedActorSystem' requires function 'remoteCall' with signature:}}
0 commit comments