@@ -53,7 +53,7 @@ static ValueDecl *findReferencedDecl(Expr *expr, SourceLoc &loc) {
53
53
}
54
54
55
55
// / \brief Return 'true' if the decl in question refers to an operator that
56
- // / could be added to the global scope via a delayed protcol conformance.
56
+ // / could be added to the global scope via a delayed protocol conformance.
57
57
// / Currently, this is only true for '==', which is added via an Equatable
58
58
// / conformance.
59
59
static bool isDelayedOperatorDecl (ValueDecl *vd) {
@@ -337,7 +337,7 @@ namespace {
337
337
// / of the overload set and call arguments.
338
338
// /
339
339
// / \param expr The application.
340
- // / \param isFavored Determine wheth the given overload is favored.
340
+ // / \param isFavored Determine whether the given overload is favored.
341
341
// / \param createReplacements If provided, a function that creates a set of
342
342
// / replacement fallback constraints.
343
343
// / \param mustConsider If provided, a function to detect the presence of
@@ -2664,7 +2664,7 @@ Expr *ConstraintSystem::generateConstraints(Expr *expr) {
2664
2664
// Remove implicit conversions from the expression.
2665
2665
expr = expr->walk (SanitizeExpr (getTypeChecker ()));
2666
2666
2667
- // Wall the expression to associate labeled argumets .
2667
+ // Wall the expression to associate labeled arguments .
2668
2668
expr->walk (ArgumentLabelWalker (*this , expr));
2669
2669
2670
2670
// Walk the expression, generating constraints.
@@ -2740,7 +2740,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
2740
2740
return ConstraintGenerator::visitUnresolvedMemberExpr (Expr);
2741
2741
}
2742
2742
// Otherwise, create a type variable saying we know nothing about this expr.
2743
- assert (!VT && " cannot reassign type viriable ." );
2743
+ assert (!VT && " cannot reassign type variable ." );
2744
2744
return VT = createFreeTypeVariableType (Expr);
2745
2745
}
2746
2746
@@ -2750,7 +2750,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
2750
2750
return ConstraintGenerator::visitParenExpr (Expr);
2751
2751
}
2752
2752
// Otherwise, create a type variable saying we know nothing about this expr.
2753
- assert (!VT && " cannot reassign type viriable ." );
2753
+ assert (!VT && " cannot reassign type variable ." );
2754
2754
return VT = createFreeTypeVariableType (Expr);
2755
2755
}
2756
2756
@@ -2760,7 +2760,7 @@ class InferUnresolvedMemberConstraintGenerator : public ConstraintGenerator {
2760
2760
return ConstraintGenerator::visitTupleExpr (Expr);
2761
2761
}
2762
2762
// Otherwise, create a type variable saying we know nothing about this expr.
2763
- assert (!VT && " cannot reassign type viriable ." );
2763
+ assert (!VT && " cannot reassign type variable ." );
2764
2764
return VT = createFreeTypeVariableType (Expr);
2765
2765
}
2766
2766
0 commit comments