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 cafb0fd commit aa999e4Copy full SHA for aa999e4
lib/AST/ASTVerifier.cpp
@@ -700,8 +700,8 @@ class Verifier : public ASTWalker {
700
auto interfaceType = archetype->getInterfaceType();
701
auto contextType = archetypeEnv->mapTypeIntoContext(interfaceType);
702
703
- if (contextType.getPointer() != archetype) {
704
- Out << "Archetype " << archetype->getString() << "does not appear"
+ if (!contextType->isEqual(archetype)) {
+ Out << "Archetype " << archetype->getString() << " does not appear"
705
<< " inside its own generic environment\n";
706
Out << "Interface type: " << interfaceType.getString() << "\n";
707
Out << "Contextual type: " << contextType.getString() << "\n";
0 commit comments