@@ -427,11 +427,7 @@ createModifyCoroutinePrototype(AbstractStorageDecl *storage,
427
427
}
428
428
429
429
// / Build an expression that evaluates the specified parameter list as a tuple
430
- // / or paren expr, suitable for use in an applyexpr.
431
- // /
432
- // / NOTE: This returns null if a varargs parameter exists in the list, as it
433
- // / cannot be forwarded correctly yet.
434
- // /
430
+ // / or paren expr, suitable for use in an apply expr.
435
431
static Expr *buildArgumentForwardingExpr (ArrayRef<ParamDecl*> params,
436
432
ASTContext &ctx) {
437
433
SmallVector<Identifier, 4 > labels;
@@ -2209,7 +2205,7 @@ ConstructorDecl *swift::createImplicitConstructor(TypeChecker &tc,
2209
2205
// "computed" in the current AST state.
2210
2206
if (var->isImplicit () || var->isStatic ())
2211
2207
continue ;
2212
- tc. validateDecl (var);
2208
+
2213
2209
if (!var->hasStorage () && !var->getAttrs ().hasAttribute <LazyAttr>())
2214
2210
continue ;
2215
2211
@@ -2221,6 +2217,7 @@ ConstructorDecl *swift::createImplicitConstructor(TypeChecker &tc,
2221
2217
2222
2218
accessLevel = std::min (accessLevel, var->getFormalAccess ());
2223
2219
2220
+ tc.validateDecl (var);
2224
2221
auto varInterfaceType = var->getValueInterfaceType ();
2225
2222
2226
2223
// If var is a lazy property, its value is provided for the underlying
@@ -2528,7 +2525,6 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
2528
2525
auto paramTy = decl->getInterfaceType ();
2529
2526
auto substTy = paramTy.subst (subMap);
2530
2527
decl->setInterfaceType (substTy);
2531
- decl->setType (GenericEnvironment::mapTypeIntoContext (genericEnv, substTy));
2532
2528
}
2533
2529
2534
2530
// Create the initializer declaration, inheriting the name,
0 commit comments