Skip to content

Fixed reporting error for type arity#43111

Merged
armanio123 merged 1 commit into
microsoft:masterfrom
armanio123:FixUnhandledDiagnostic2626
Mar 13, 2021
Merged

Fixed reporting error for type arity#43111
armanio123 merged 1 commit into
microsoft:masterfrom
armanio123:FixUnhandledDiagnostic2626

Conversation

@armanio123
Copy link
Copy Markdown
Contributor

Fixes #42773

I wasn't able to pinpoint a code for repro but I've been researching about tuples and generics. Where I believe the bug resides.

In the meanwhile, I used this repo for testing: rpavlik/openxr-changelog-maker@7711de4

@typescript-bot typescript-bot added the For Milestone Bug PRs that fix a bug with a specific milestone label Mar 6, 2021
@armanio123 armanio123 merged commit 322c70f into microsoft:master Mar 13, 2021
@jakst
Copy link
Copy Markdown

jakst commented May 26, 2021

Not sure if it's interesting anymore @armanio123, but since you mentioned that you couldn't pinpoint a reproduction I figured it might be useful. I bumped into this today when using SWR and started hunting for a minimal reproducible example (before I found this PR). This is what I came up with:

type Args =
  | readonly []
  | readonly [
    {
      myProperty: { subProperty: string }
    }
  ]

const fn = (...args: Args) => {}
fn({ myProperty: '' })

REPL (will throw Uncaught (in promise) Error: Debug Failure. Unhandled Diagnostic: 2626 in the console)

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug Failure. Unhandled Diagnostic: 2626

4 participants