We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b72f0c9 + 5c4c65b commit 2269c80Copy full SHA for 2269c80
lib/AST/DistributedDecl.cpp
@@ -178,13 +178,7 @@ Type swift::getDistributedActorSystemResultHandlerType(
178
auto module = system->getParentModule();
179
Type selfType = system->getSelfInterfaceType();
180
auto conformance = module->lookupConformance(selfType, DAS);
181
- auto witness =
182
- conformance.getTypeWitnessByName(selfType, ctx.Id_ResultHandler);
183
- if (auto alias = dyn_cast<TypeAliasType>(witness.getPointer())) {
184
- return alias->getDecl()->getUnderlyingType();
185
- } else {
186
- return witness;
187
- }
+ return conformance.getTypeWitnessByName(selfType, ctx.Id_ResultHandler);
188
}
189
190
Type swift::getDistributedActorSystemInvocationEncoderType(NominalTypeDecl *system) {
0 commit comments