TypeScript/tests/cases/compiler/implicitAnyInCatch.ts

15 lines
243 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @noimplicitany: true
// 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) {
}
}
}