mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #80812 from jamieQ/invalid-isolated-any-conversion
[Sema]: ban @isolated(any) conversions to synchronous function types
This commit is contained in:
@@ -5045,6 +5045,10 @@ ERROR(capture_across_type_decl,none,
|
||||
"scope",
|
||||
(const NominalTypeDecl *, const ValueDecl *))
|
||||
|
||||
ERROR(isolated_any_conversion_to_synchronous_func,none,
|
||||
"converting @isolated(any) function of type %0 to synchronous function type %1 is not allowed",
|
||||
(Type, Type))
|
||||
|
||||
ERROR(reference_to_invalid_decl,none,
|
||||
"cannot reference invalid declaration %0", (const ValueDecl *))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user