File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1122,11 +1122,12 @@ class CompletionLookup : public swift::VisibleDeclConsumer {
1122
1122
Builder.addLeadingDot ();
1123
1123
Builder.addTextChunk (" init" );
1124
1124
}
1125
- Type ArgsType = CD->getType ()
1126
- ->castTo <AnyFunctionType>()->getResult ()
1127
- ->castTo <AnyFunctionType>()->getInput ();
1128
- addPatternFromType (Builder, ArgsType);
1129
- addTypeAnnotation (Builder, CD->getResultType ());
1125
+ Type ConstructorType =
1126
+ getTypeOfMember (CD)->castTo <AnyFunctionType>()->getResult ();
1127
+ addPatternFromType (
1128
+ Builder, ConstructorType->castTo <AnyFunctionType>()->getInput ());
1129
+ addTypeAnnotation (
1130
+ Builder, ConstructorType->castTo <AnyFunctionType>()->getResult ());
1130
1131
}
1131
1132
1132
1133
void addSubscriptCall (const SubscriptDecl *SD, DeclVisibilityKind Reason) {
You can’t perform that action at this time.
0 commit comments