|
5882 | 5882 | msg: "call is 'async' but is not marked with 'await'" |
5883 | 5883 |
|
5884 | 5884 | - 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'" |
5886 | 5886 |
|
5887 | 5887 | - id: no_async_in_await |
5888 | 5888 | msg: "no calls to 'async' functions occur within 'await' expression" |
|
5899 | 5899 | - id: note_add_async_to_function |
5900 | 5900 | msg: "add 'async' to function %0 to make it asynchronous" |
5901 | 5901 |
|
| 5902 | +- id: note_add_asynchandler_to_function |
| 5903 | + msg: "add '@asyncHandler' to function %0 to create an implicit asynchronous context" |
| 5904 | + |
5902 | 5905 | - id: not_objc_function_async |
5903 | 5906 | msg: "'async' function cannot be represented in Objective-C" |
5904 | 5907 |
|
|
5911 | 5914 | - id: async_autoclosure_nonasync_function |
5912 | 5915 | msg: "'async' autoclosure parameter in a non-'async' function" |
5913 | 5916 |
|
| 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 | + |
5914 | 5938 | - id: unsupported_recursive_struct |
5915 | 5939 | msg: "value type %0 cannot have a stored property that recursively contains it" |
5916 | 5940 |
|
|
8277 | 8301 |
|
8278 | 8302 | - id: enum_case_added |
8279 | 8303 | msg: "%0 has been added as a new enum case" |
| 8304 | + |
0 commit comments