Skip to content

Conversation

@pullfrog
Copy link

@pullfrog pullfrog bot commented Dec 19, 2025

Summary

Multiplies all type checker recursion depth limits by 100 to allow significantly deeper type nesting:

  • inference.go: 2200 (type inference recursion checks)
  • relater.go: 3300 (type relation recursion checks), 101000 (conditional type nesting)

Changes

Updated the maxDepth parameters in calls to isDeeplyNestedType:

  • internal/checker/inference.go: Two occurrences (lines 351, 354, 1005, 1008)
  • internal/checker/relater.go: Four occurrences (lines 3064, 3070, 3488, 3669)

Test Plan

  • Verified existing checker tests pass
  • No breaking changes to existing functionality

Context

These limits control when the type checker stops recursing through deeply nested types to prevent infinite loops. Increasing them allows more complex type definitions to be processed before hitting recursion limits.

Pullfrog  | Triggered by Pullfrog | Using Claude CodeView workflow runpullfrog.com𝕏

Multiply all type checker recursion depth limits by 100 to allow deeper type nesting:
- inference.go: 2 → 200 (type inference recursion)
- relater.go: 3 → 300 (type relation recursion), 10 → 1000 (conditional type nesting)
@pullfrog
Copy link
Author

pullfrog bot commented Dec 19, 2025

Pullfrog  | Review this ➔pullfrog.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant