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'm confused by which variable you think is unused? _a is used as a temporary during object initialization and cannot be removed. What do you expect the emit to be?
var declarations are hoisted. We take advantage of this at emit-time and aggregate all temporaries we determine we need as we build up the output. Then, at the end of an appropriate scope, we emit the declaration for all temporaries. There's nothing wrong with this semantically, and the variables are not unused.
#1082 called for [Object initializer](the https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer) ES6 syntax.
Using tsc/typescript 1.7.5 with Node 5.3.0.
Input:
Output [
tsc input.ts
]:The text was updated successfully, but these errors were encountered: