Skip to content

Commit 315df90

Browse files
authored
Merge pull request swiftlang#33523 from HassanElDesouky/mirror-diagnostics
[Localization] NFC: Mirror the changes in diagnostic messages in `.def` files
2 parents 342f3dd + b482de0 commit 315df90

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

localization/diagnostics/en.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5882,7 +5882,7 @@
58825882
msg: "call is 'async' but is not marked with 'await'"
58835883

58845884
- id: async_call_without_await_in_autoclosure
5885-
msg: "call is 'async' in an autoclosure argument is not marked with 'await'"
5885+
msg: "call is 'async' in an autoclosure argument that is not marked with 'await'"
58865886

58875887
- id: no_async_in_await
58885888
msg: "no calls to 'async' functions occur within 'await' expression"
@@ -5899,6 +5899,9 @@
58995899
- id: note_add_async_to_function
59005900
msg: "add 'async' to function %0 to make it asynchronous"
59015901

5902+
- id: note_add_asynchandler_to_function
5903+
msg: "add '@asyncHandler' to function %0 to create an implicit asynchronous context"
5904+
59025905
- id: not_objc_function_async
59035906
msg: "'async' function cannot be represented in Objective-C"
59045907

@@ -5911,6 +5914,27 @@
59115914
- id: async_autoclosure_nonasync_function
59125915
msg: "'async' autoclosure parameter in a non-'async' function"
59135916

5917+
- id: asynchandler_attr_requires_concurrency
5918+
msg: "'@asyncHandler' is only valid when experimental concurrency is enabled"
5919+
5920+
- id: asynchandler_non_func
5921+
msg: "'@asyncHandler' can only be applied to functions"
5922+
5923+
- id: asynchandler_returns_value
5924+
msg: "'@asyncHandler' function can only return 'Void'"
5925+
5926+
- id: asynchandler_throws
5927+
msg: "'@asyncHandler' function cannot throw"
5928+
5929+
- id: asynchandler_async
5930+
msg: "'@asyncHandler' function cannot be 'async' itself"
5931+
5932+
- id: asynchandler_inout_parameter
5933+
msg: "'inout' parameter is not allowed in '@asyncHandler' function"
5934+
5935+
- id: asynchandler_mutating
5936+
msg: "'@asyncHandler' function cannot be 'mutating'"
5937+
59145938
- id: unsupported_recursive_struct
59155939
msg: "value type %0 cannot have a stored property that recursively contains it"
59165940

@@ -8277,3 +8301,4 @@
82778301

82788302
- id: enum_case_added
82798303
msg: "%0 has been added as a new enum case"
8304+

0 commit comments

Comments
 (0)