TypeScript/tests/baselines/reference/implicitAnyInCatch.js

33 lines
561 B
TypeScript

//// [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]
// this should not be an error
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;
})();