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.
1 parent 171f7d5 commit 2a626b4Copy full SHA for 2a626b4
lib/Sema/ConstraintSystem.cpp
@@ -536,15 +536,6 @@ namespace {
536
return type;
537
}
538
539
- // Replace archetypes with fresh type variables.
540
- if (auto archetype = type->getAs<ArchetypeType>()) {
541
- auto known = replacements.find(archetype->getCanonicalType());
542
- if (known != replacements.end())
543
- return known->second;
544
-
545
- return archetype;
546
- }
547
548
// Replace a generic type parameter with its corresponding type variable.
549
if (auto genericParam = type->getAs<GenericTypeParamType>()) {
550
auto known = replacements.find(genericParam->getCanonicalType());
0 commit comments