We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c0af2a + 5c609f2 commit 1d16c10Copy full SHA for 1d16c10
lib/Sema/CSApply.cpp
@@ -4482,9 +4482,6 @@ namespace {
4482
/// Diagnose an optional injection that is probably not what the
4483
/// user wanted, because it comes from a forced downcast.
4484
void diagnoseOptionalInjection(InjectIntoOptionalExpr *injection) {
4485
- // Don't diagnose when we're injecting into
4486
- auto toOptionalType = cs.getType(injection);
4487
-
4488
// Check whether we have a forced downcast.
4489
auto &tc = cs.getTypeChecker();
4490
auto *cast = findForcedDowncast(tc.Context, injection->getSubExpr());
0 commit comments