Merge pull request #80812 from jamieQ/invalid-isolated-any-conversion

[Sema]: ban @isolated(any) conversions to synchronous function types
This commit is contained in:
Holly Borla
2025-05-02 12:21:20 -07:00
committed by GitHub
3 changed files with 44 additions and 2 deletions

View File

@@ -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 *))