@@ -2964,7 +2964,7 @@ ERROR(dynamic_self_non_method,none,
29642964 " %select{global|local}0 function cannot return 'Self'" , (bool ))
29652965
29662966ERROR(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 "
29682968 " property, subscript or method result; did you mean '%0'?" , (StringRef))
29692969ERROR(dynamic_self_in_mutable_property,none,
29702970 " mutable property cannot have covariant 'Self' type" , ())
@@ -2973,11 +2973,14 @@ ERROR(dynamic_self_in_stored_property,none,
29732973ERROR(dynamic_self_in_mutable_subscript,none,
29742974 " mutable subscript cannot have covariant 'Self' type" , ())
29752975ERROR(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" , ())
29772978ERROR(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" , ())
29792981ERROR(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" , ())
29812984ERROR(dynamic_self_stored_property_init,none,
29822985 " covariant 'Self' type cannot be referenced from a stored property initializer" , ())
29832986ERROR(dynamic_self_default_arg,none,
@@ -4331,6 +4334,9 @@ ERROR(actor_isolated_from_async_let,none,
43314334ERROR(actor_isolated_from_escaping_closure,none,
43324335 " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from an '@escaping' closure" ,
43334336 (DescriptiveDeclKind, DeclName, unsigned ))
4337+ ERROR(actor_isolated_keypath_component,none,
4338+ " cannot form key path to actor-isolated %0 %1" ,
4339+ (DescriptiveDeclKind, DeclName))
43344340ERROR(local_function_executed_concurrently,none,
43354341 " concurrently-executed %0 %1 must be marked as '@concurrent'" ,
43364342 (DescriptiveDeclKind, DeclName))
@@ -4377,6 +4383,9 @@ WARNING(non_concurrent_property_type,none,
43774383WARNING(non_concurrent_keypath_capture,none,
43784384 " cannot form key path that captures non-concurrent-value type %0" ,
43794385 (Type))
4386+ WARNING(non_concurrent_keypath_access,none,
4387+ " cannot form key path that accesses non-concurrent-value type %0" ,
4388+ (Type))
43804389ERROR(non_concurrent_type_member,none,
43814390 " %select{stored property %1|associated value %1}0 of "
43824391 " 'ConcurrentValue'-conforming %2 %3 has non-concurrent-value type %4" ,
0 commit comments