TypeScript/tests/baselines/reference/implicitAnyInCatch.js

33 lines
561 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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]
2015-01-23 00:58:00 +01:00
// this should not be an error
try { }
2014-07-13 01:04:16 +02:00
catch (error) {
if (error.number === -2147024809) { }
2014-07-13 01:04:16 +02:00
}
for (var key in this) { }
2014-07-13 01:04:16 +02:00
var C = (function () {
function C() {
}
C.prototype.temp = function () {
for (var x in this) {
}
};
return C;
})();