Skip to content

Commit

Permalink
Merge pull request #1910 from nlepage/fix-recursive-visitor-intersection
Browse files Browse the repository at this point in the history
Fix recursive visitor in order to call intersection callback
  • Loading branch information
Gerrit0 committed Apr 7, 2022
2 parents 5873f52 + 388d48a commit a6cca1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/models/types.ts
Expand Up @@ -89,6 +89,7 @@ export function makeRecursiveVisitor(
visitor.inferred?.(type);
},
intersection(type) {
visitor.intersection?.(type);
type.types.forEach((t) => t.visit(recursiveVisitor));
},
intrinsic(type) {
Expand Down

0 comments on commit a6cca1f

Please sign in to comment.