mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Distributed] Improve erroring out when distributed types not found
also return early when type hasError
This commit is contained in:
@@ -474,6 +474,9 @@ static ValueDecl *deriveDistributedActor_actorSystem(
|
||||
auto classDecl = dyn_cast<ClassDecl>(derived.Nominal);
|
||||
assert(classDecl && derived.Nominal->isDistributedActor());
|
||||
|
||||
if (!C.getLoadedModule(C.Id_Distributed))
|
||||
return nullptr;
|
||||
|
||||
// ```
|
||||
// nonisolated let actorSystem: ActorSystem
|
||||
// ```
|
||||
|
||||
Reference in New Issue
Block a user