File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ distributed actor First {
15
15
distributed func owned( _: __owned Param) async throws { } // expected-error{{cannot declare '__owned' argument '_' in distributed instance method 'owned'}}
16
16
distributed func shared( _: __shared Param) async throws { } // expected-error{{cannot declare '__shared' argument '_' in distributed instance method 'shared'}}
17
17
distributed func consuming( _: consuming Param ) async throws { }
18
- // expected-error@-1{{Copyable types cannot be 'consuming' or 'borrowing' yet}}
18
+ // expected-error@-1{{copyable types cannot be 'consuming' or 'borrowing' yet}}
19
19
// expected-error@-2{{parameter '' of type '<<error type>>' in distributed instance method does not conform to serialization requirement 'Codable'}}
20
20
}
21
21
22
22
func test( first: First ) async throws {
23
23
try await first. owned ( . init( ) )
24
24
try await first. shared ( . init( ) )
25
- }
25
+ }
You can’t perform that action at this time.
0 commit comments