@@ -2964,7 +2964,7 @@ ERROR(dynamic_self_non_method,none,
2964
2964
" %select{global|local}0 function cannot return 'Self'" , (bool ))
2965
2965
2966
2966
ERROR(dynamic_self_invalid,none,
2967
- " covariant 'Self' can only appear as the possibly optional type of a "
2967
+ " covariant 'Self' or 'Self?' can only appear as the type of a "
2968
2968
" property, subscript or method result; did you mean '%0'?" , (StringRef))
2969
2969
ERROR(dynamic_self_in_mutable_property,none,
2970
2970
" mutable property cannot have covariant 'Self' type" , ())
@@ -2973,11 +2973,14 @@ ERROR(dynamic_self_in_stored_property,none,
2973
2973
ERROR(dynamic_self_in_mutable_subscript,none,
2974
2974
" mutable subscript cannot have covariant 'Self' type" , ())
2975
2975
ERROR(dynamic_self_invalid_property,none,
2976
- " covariant 'Self' can only appear at the top level of property type" , ())
2976
+ " covariant 'Self' or 'Self?' can only appear at the top level of "
2977
+ " property type" , ())
2977
2978
ERROR(dynamic_self_invalid_subscript,none,
2978
- " covariant 'Self' can only appear at the top level of subscript element type" , ())
2979
+ " covariant 'Self' or 'Self?' can only appear at the top level of "
2980
+ " subscript element type" , ())
2979
2981
ERROR(dynamic_self_invalid_method,none,
2980
- " covariant 'Self' can only appear at the top level of method result type" , ())
2982
+ " covariant 'Self' or 'Self?' can only appear at the top level of "
2983
+ " method result type" , ())
2981
2984
ERROR(dynamic_self_stored_property_init,none,
2982
2985
" covariant 'Self' type cannot be referenced from a stored property initializer" , ())
2983
2986
ERROR(dynamic_self_default_arg,none,
@@ -4331,6 +4334,9 @@ ERROR(actor_isolated_from_async_let,none,
4331
4334
ERROR(actor_isolated_from_escaping_closure,none,
4332
4335
" actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from an '@escaping' closure" ,
4333
4336
(DescriptiveDeclKind, DeclName, unsigned ))
4337
+ ERROR(actor_isolated_keypath_component,none,
4338
+ " cannot form key path to actor-isolated %0 %1" ,
4339
+ (DescriptiveDeclKind, DeclName))
4334
4340
ERROR(local_function_executed_concurrently,none,
4335
4341
" concurrently-executed %0 %1 must be marked as '@concurrent'" ,
4336
4342
(DescriptiveDeclKind, DeclName))
@@ -4377,6 +4383,9 @@ WARNING(non_concurrent_property_type,none,
4377
4383
WARNING(non_concurrent_keypath_capture,none,
4378
4384
" cannot form key path that captures non-concurrent-value type %0" ,
4379
4385
(Type))
4386
+ WARNING(non_concurrent_keypath_access,none,
4387
+ " cannot form key path that accesses non-concurrent-value type %0" ,
4388
+ (Type))
4380
4389
ERROR(non_concurrent_type_member,none,
4381
4390
" %select{stored property %1|associated value %1}0 of "
4382
4391
" 'ConcurrentValue'-conforming %2 %3 has non-concurrent-value type %4" ,
0 commit comments