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
I found a bug in the latest release which is no longer present in your nightly builds. The only reason I convinced myself to post the bug is because the nightly build is for 2.8.0 and given that 2.7 was just released 12 days ago I do not think the nightly build will make it out any time soon.
jmlopez in ~/typescript-debug$ npm install typescript@next
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
updated 1 package in 1.394s
jmlopez in ~/typescript-debug$ tsc test.ts --noUnusedLocals --noEmit
test.ts(4,11): error TS6133: 'notInitialized' is declared but its value is never read.
test.ts(5,11): error TS6133: 'initialized' is declared but its value is never read.
Actual behavior:
jmlopez in ~/typescript-debug$ npm install typescript@latest
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
updated 1 package in 1.519s
jmlopez in ~/typescript-debug$ tsc test.ts --noUnusedLocals --noEmit
/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:59841
throw e;
^
Error: Debug Failure.
at checkUnusedClassMembers (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:35757:38)
at checkUnusedIdentifiers (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:35643:29)
at checkSourceFileWorker (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:37913:21)
at checkSourceFile (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:37891:13)
at getDiagnosticsWorker (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:37945:17)
at Object.getDiagnostics (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:37934:24)
at /Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:59858:85
at runWithCancellationToken (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:59834:24)
at getSemanticDiagnosticsForFileNoCache (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:59848:20)
at getAndCacheDiagnostics (/Users/jmlopez/typescript-debug/node_modules/typescript/lib/tsc.js:60059:26)
Related Issues: ... (not sure)
The text was updated successfully, but these errors were encountered:
I found a bug in the latest release which is no longer present in your nightly builds. The only reason I convinced myself to post the bug is because the nightly build is for 2.8.0 and given that 2.7 was just released 12 days ago I do not think the nightly build will make it out any time soon.
This bug seems more fit for a patch.
TypeScript Version: 2.7.1
Search Terms: noUnusedLocals, debug failure
Code
Expected behavior:
The behavior seen in the nightly build seems ok:
Actual behavior:
Related Issues: ... (not sure)
The text was updated successfully, but these errors were encountered: