- Code
guard_body_must_not_fallthrough- Severity
- error
- Message
'guard' body must not fall through, consider using a 'return' or 'throw' to exit the scope
The compiler puts it in the diagnostic group ClangDeclarationImport.
- Code
import_multiple_mainactor_attr- Severity
- warning
- Message
this attribute for global actor '{}' is invalid; the declaration already has attribute for global actor '{}'
- Code
incorrect_explicit_closure_result_vs_contextual_type- Severity
- error
- Message
declared closure result {} is incompatible with contextual type {}
- Code
inherit_actor_context_only_on_async_or_isolation_erased_params- Severity
- error
- Message
{} only applies to '@isolated(any)' parameters or parameters with asynchronous function types
- Code
inherit_actor_context_only_on_func_types- Severity
- error
- Message
{} only applies to parameters with function types (got: {})
- Code
inherit_actor_context_only_on_sending_or_Sendable_params- Severity
- error
- Message
{} only applies to 'sending' parameters or parameters with '@Sendable' function types