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

35 lines
536 B
JavaScript

//// [implicitAnyInCatch.ts]
// this should not be an error
try { } catch (error) {
if (error.number === -2147024809) { }
}
for (var key in this) { }
class C {
public temp() {
for (var x in this) {
}
}
}
//// [implicitAnyInCatch.js]
try {
}
catch (error) {
if (error.number === -2147024809) {
}
}
for (var key in this) {
}
var C = (function () {
function C() {
}
C.prototype.temp = function () {
for (var x in this) {
}
};
return C;
})();