TypeScript/tests/baselines/reference/incrementOnTypeParameter.js
2014-07-12 17:30:19 -07:00

23 lines
385 B
TypeScript

//// [incrementOnTypeParameter.ts]
class C<T> {
a: T;
foo() {
this.a++;
for (var i: T, j = 0; j < 10; i++) {
}
}
}
//// [incrementOnTypeParameter.js]
var C = (function () {
function C() {
}
C.prototype.foo = function () {
this.a++;
for (var i, j = 0; j < 10; i++) {
}
};
return C;
})();