mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
550 B
TypeScript
33 lines
550 B
TypeScript
//// [tests/cases/compiler/implicitAnyInCatch.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
// this should not be an error
|
|
try { }
|
|
catch (error) {
|
|
if (error.number === -2147024809) { }
|
|
}
|
|
for (var key in this) { }
|
|
class C {
|
|
temp() {
|
|
for (var x in this) {
|
|
}
|
|
}
|
|
}
|