26 lines
669 B
Plaintext
26 lines
669 B
Plaintext
=== tests/cases/compiler/implicitAnyInCatch.ts ===
|
|
// this should not be an error
|
|
try { } catch (error) {
|
|
>error : Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15))
|
|
|
|
if (error.number === -2147024809) { }
|
|
>error : Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15))
|
|
}
|
|
for (var key in this) { }
|
|
>key : Symbol(key, Decl(implicitAnyInCatch.ts, 4, 8))
|
|
|
|
class C {
|
|
>C : Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25))
|
|
|
|
public temp() {
|
|
>temp : Symbol(temp, Decl(implicitAnyInCatch.ts, 6, 9))
|
|
|
|
for (var x in this) {
|
|
>x : Symbol(x, Decl(implicitAnyInCatch.ts, 8, 16))
|
|
>this : Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25))
|
|
}
|
|
}
|
|
}
|
|
|
|
|