Skip to content

Fixed reporting error for type arity #43111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2021

Conversation

armanio123
Copy link
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

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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