TypeScript/tests/baselines/reference/implicitAnyInCatch.types
2016-06-20 12:16:43 -07:00

32 lines
516 B
Plaintext

=== tests/cases/compiler/implicitAnyInCatch.ts ===
// this should not be an error
try { } catch (error) {
>error : any
if (error.number === -2147024809) { }
>error.number === -2147024809 : boolean
>error.number : any
>error : any
>number : any
>-2147024809 : -2147024809
>2147024809 : number
}
for (var key in this) { }
>key : string
>this : any
class C {
>C : C
public temp() {
>temp : () => void
for (var x in this) {
>x : string
>this : this
}
}
}