Skip to content

Commit 1e040ac

Browse files
committed
[Concurrency] Note that 'actor' is a decl modifier, not an attribute.
1 parent e5c1491 commit 1e040ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/Attr.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ SIMPLE_DECL_ATTR(asyncHandler, AsyncHandler,
567567
101)
568568

569569
CONTEXTUAL_SIMPLE_DECL_ATTR(actor, Actor,
570-
OnClass | ConcurrencyOnly |
570+
DeclModifier | OnClass | ConcurrencyOnly |
571571
ABIBreakingToAdd | ABIBreakingToRemove |
572572
APIBreakingToAdd | APIBreakingToRemove,
573573
102)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
actor class C { } // expected-error{{'actor' attribute is only valid when experimental concurrency is enabled}}
3+
actor class C { } // expected-error{{'actor' modifier is only valid when experimental concurrency is enabled}}
44

0 commit comments

Comments
 (0)