File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
lib/AST/RequirementMachine Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -727,8 +727,15 @@ MutableTerm PropertyMap::computeConstraintTermForTypeWitness(
727727 //
728728 // Where S[n] is the nth substitution term.
729729
730- // FIXME: Record a rewrite path.
731- return Context.getRelativeTermForType (typeWitness, substitutions);
730+ auto result = Context.getRelativeTermForType (typeWitness, substitutions);
731+
732+ RewriteSystem::TypeWitness witness (Term::get (subjectType, Context),
733+ Term::get (result, Context));
734+ unsigned witnessID = System.recordTypeWitness (witness);
735+ path.add (RewriteStep::forAbstractTypeWitness (
736+ witnessID, /* inverse=*/ false ));
737+
738+ return result;
732739 }
733740
734741 // Otherwise the type witness is concrete, but may contain type
You can’t perform that action at this time.
0 commit comments