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
|
2015-02-07 03:45:09 +01:00
|
|
|
try { }
|
2014-07-13 01:04:16 +02:00
|
|
|
catch (error) {
|
2015-02-07 03:45:09 +01:00
|
|
|
if (error.number === -2147024809) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2015-02-07 03:45:09 +01: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;
|
|
|
|
})();
|