Skip to content

Commit a6cca1f

Browse files
authored
Merge pull request #1910 from nlepage/fix-recursive-visitor-intersection
Fix recursive visitor in order to call intersection callback
2 parents 5873f52 + 388d48a commit a6cca1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/models/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export function makeRecursiveVisitor(
8989
visitor.inferred?.(type);
9090
},
9191
intersection(type) {
92+
visitor.intersection?.(type);
9293
type.types.forEach((t) => t.visit(recursiveVisitor));
9394
},
9495
intrinsic(type) {

0 commit comments

Comments
 (0)