Skip to content
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

Soon to be fixed bug #7

Open
orta opened this issue Jul 7, 2020 · 2 comments
Open

Soon to be fixed bug #7

orta opened this issue Jul 7, 2020 · 2 comments

Comments

@orta
Copy link
Contributor

orta commented Jul 7, 2020

microsoft/TypeScript#39229

// @allowJs
// @filename: index.js

/**
 * @type {(...args: [string, string] | [number, string, string]) => void}
 */
function foo(...args) {
//               ^?
}

Workbench Repro

@orta orta added the has repro indicates there's a twoslash repro in the issue label Jul 7, 2020
@typescript-bot
Copy link

typescript-bot commented Jul 7, 2020

👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of the repro in this issue running against the nightly TypeScript. If something changes, I will post a new comment.


Issue body code block by @orta

⚠️ Assertions:

  • (parameter) args: [string, string] | [number, string, string]

Historical Information

Issue body code block by @orta

Version Reproduction Outputs
Nightly

⚠️ Assertions:

  • (parameter) args: [string, string] | [number, string, string]

3.5.3, 3.6.4, 3.7.5, 3.8.3, 3.9.5

⚠️ Assertions:

  • (parameter) args: string | number

@typescript-bot
Copy link

It looks like something has changed with this repro on today's nightly build of TypeScript. You can see what has changed on TypeScript between c12d431d7e01555170b79894b83043d8e605e1f0 and 8a39ae6f8575c91ba1d018f36e1afb2ad5356d6e here.


Issue body code block by @orta

Before After

⚠️ Assertions:

  • (parameter) args: string | number

⚠️ Assertions:

  • (parameter) args: [string, string] | [number, string, string]

@orta orta removed the has repro indicates there's a twoslash repro in the issue label Jul 8, 2020
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

No branches or pull requests

2 participants