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