Skip to content

Commit 3006e92

Browse files
committed
[Distributed] NFC: XFAIL a couple of incorrect attr use tests
1 parent 9d5f546 commit 3006e92

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/Distributed/distributed_actor_var_implicitly_async_throws.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@ distributed actor D {
3333
"dist"
3434
}
3535

36-
// OK:
36+
// FIXME: The following should be accepted.
37+
/*
3738
distributed var distGet: String {
3839
get distributed {
3940
"okey"
4041
}
4142
}
43+
*/
4244

43-
distributed var distSetGet: String {
44-
set distributed {
45+
distributed var distSetGet: String { // expected-error {{'distributed' computed property 'distSetGet' cannot have setter}}
46+
set distributed { // expected-error {{expected '{' to start setter definition}}
4547
_ = newValue
4648
}
4749
get distributed {

0 commit comments

Comments
 (0)