Skip to content

Commit 7825e37

Browse files
committed
[test] update regression test for effectful props
With effectful properties, we'll now raise an error if an effect specifier appears on a non-'get' accessor.
1 parent f9452b2 commit 7825e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Parse/async.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class X {
4242
return 0
4343
}
4444

45-
set async { // expected-error{{expected '{' to start setter definition}}
45+
set async { // expected-error{{'set' accessor cannot have specifier 'async'}}
4646
}
4747
}
4848
}

0 commit comments

Comments
 (0)