File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -3179,19 +3179,10 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
3179
3179
Kind = LookupKind::ValueExpr;
3180
3180
NeedLeadingDot = !HaveDot;
3181
3181
3182
- // This is horrible
3183
3182
ExprType = ExprType->getRValueType ();
3183
+ assert (!ExprType->hasTypeParameter ());
3184
+
3184
3185
this ->ExprType = ExprType;
3185
- if (ExprType->hasTypeParameter ()) {
3186
- DeclContext *DC = nullptr ;
3187
- if (VD)
3188
- DC = VD->getInnermostDeclContext ();
3189
- else if (auto NTD = ExprType->getInOutObjectType ()
3190
- ->getMetatypeInstanceType ()->getAnyNominal ())
3191
- DC = NTD;
3192
- if (DC)
3193
- ExprType = DC->mapTypeIntoContext (ExprType);
3194
- }
3195
3186
3196
3187
// Handle special cases
3197
3188
bool isIUO = VD && VD->getAttrs ()
You can’t perform that action at this time.
0 commit comments