You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
at assignParameterType (node_modules/typescript/lib/tsc.js:64861:26)
at assignContextualParameterTypes (node_modules/typescript/lib/tsc.js:64826:21)
at contextuallyCheckFunctionExpressionOrObjectLiteralMethod (node_modules/typescript/lib/tsc.js:65228:29)
at checkFunctionExpressionOrObjectLiteralMethod (node_modules/typescript/lib/tsc.js:65207:13)
at checkExpressionWorker (node_modules/typescript/lib/tsc.js:66804:28)
at checkExpression (node_modules/typescript/lib/tsc.js:66706:38)
at checkExpressionWithContextualType (node_modules/typescript/lib/tsc.js:66395:28)
at inferTypeArguments (node_modules/typescript/lib/tsc.js:62905:39)
at chooseOverload (node_modules/typescript/lib/tsc.js:63565:53)
at resolveCall (node_modules/typescript/lib/tsc.js:63402:26)
Bug Report
🔎 Search Terms
Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
🕗 Version & Regression Information
⏯ Playground Link
Does not reproduce in the playground, only reproduces in CLI. To reproduce, run
tsc code.tswith the code below.💻 Code
🙁 Actual behavior
🙂 Expected behavior
No crash.
(Ideally an error about an implicit any)