Skip to content

Commit de10c41

Browse files
committed
Fix another case where the type checker will set the correct types.
We should not be providing types that we can/should derive automatically.
1 parent 9e38a8e commit de10c41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/DerivedConformanceEquatableHashable.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ static void deriveBodyEquatable_enum_eq(AbstractFunctionDecl *eqDecl) {
173173
fnType);
174174
}
175175

176-
auto tType = fnType.getInput();
177176
TupleExpr *abTuple = TupleExpr::create(C, SourceLoc(), { aIndex, bIndex },
178177
{ }, { }, SourceLoc(),
179178
/*HasTrailingClosure*/ false,
180-
/*Implicit*/ true, tType);
179+
/*Implicit*/ true);
181180

182181
auto *cmpExpr = new (C) BinaryExpr(cmpFuncExpr, abTuple, /*implicit*/ true);
183182
statements.push_back(new (C) ReturnStmt(SourceLoc(), cmpExpr));

0 commit comments

Comments
 (0)