Skip to content

fix: resolve type-checker timeout in CardDetailView onChange#53

Open
AlexanderWillner wants to merge 1 commit intolangwatch:mainfrom
AlexanderWillner:fix/onChange-typecheck
Open

fix: resolve type-checker timeout in CardDetailView onChange#53
AlexanderWillner wants to merge 1 commit intolangwatch:mainfrom
AlexanderWillner:fix/onChange-typecheck

Conversation

@AlexanderWillner
Copy link
Copy Markdown

Summary

  • Add explicit as String? type annotation to .onChange(of: card.link.tmuxLink?.sessionName) in CardDetailView.swift
  • Fixes Swift compiler error: "the compiler is unable to type-check this expression in reasonable time"

Test plan

  • swift build succeeds
  • make run-app launches without errors

🤖 Generated with Claude Code

The optional chaining expression `card.link.tmuxLink?.sessionName`
in the `.onChange(of:)` modifier caused the Swift compiler to
exceed its type-checking budget. Adding an explicit `as String?`
annotation resolves the ambiguity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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