Skip to content

Assert in getCodeActionForParameters when typing incomplete function call #20523

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

Closed
RyanCavanaugh opened this issue Dec 6, 2017 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@RyanCavanaugh
Copy link
Member

Code (noImplicitAny on):

function f(x) { }
f(

Stack:

     Error: Debug Failure. False expression.
      at Object.zipWith (src\compiler\core.ts:218:15)
      at getCodeActionForParameters (src\services\codefixes\inferFromUsage.ts:130:47)
      at Object.getActionsForAddExplicitTypeAnnotation [as getCodeActions] (src\services\codefixes\inferFromUsage.ts:67:24)
      at src\services\codeFixProvider.ts:40:35
      at Object.forEach (src\compiler\core.ts:174:32)
      at Object.getFixes (src\services\codeFixProvider.ts:39:13)
      at src\services\services.ts:1893:32
      at Object.flatMap (src\compiler\core.ts:463:27)
      at Object.getCodeFixesAtPosition (src\services\services.ts:1891:20)
      at Object.proxy.(anonymous function) [as getCodeFixesAtPosition] (src\harness\fourslash.ts:397:66)
      at src\harness\fourslash.ts:2499:45
      at Object.flatMap (src\compiler\core.ts:463:27)
      at TestState.getCodeFixActions (src\harness\fourslash.ts:2494:23)
      at TestState.verifyCodeFix (src\harness\fourslash.ts:2448:34)
      at VerifyNegatable.codeFix (src\harness\fourslash.ts:3906:24)
      at eval (eval at runCode (src\harness\fourslash.ts:3231:23), <anonymous>:7:8)
      at runCode (src\harness\fourslash.ts:3232:13)
      at runFourSlashTestContent (src\harness\fourslash.ts:3214:9)
      at Object.runFourSlashTest (src\harness\fourslash.ts:3199:9)
@RyanCavanaugh RyanCavanaugh added the Bug A bug in TypeScript label Dec 6, 2017
@RyanCavanaugh RyanCavanaugh self-assigned this Dec 6, 2017
@RyanCavanaugh
Copy link
Member Author

Fix available

RyanCavanaugh added a commit to RyanCavanaugh/TypeScript that referenced this issue Dec 7, 2017
RyanCavanaugh added a commit to RyanCavanaugh/TypeScript that referenced this issue Dec 7, 2017
@mhegazy mhegazy added this to the TypeScript 2.7 milestone Jan 11, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jan 11, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants