TypeScript/tests/baselines/reference/implicitAnyInCatch.types

32 lines
502 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/implicitAnyInCatch.ts ===
// this should not be an error
try { } catch (error) {
>error : any
2014-08-15 23:33:16 +02:00
if (error.number === -2147024809) { }
>error.number === -2147024809 : boolean
>error.number : any
>error : any
2014-08-15 23:33:16 +02:00
>number : any
>-2147024809 : number
2015-04-13 21:36:11 +02:00
>2147024809 : number
2014-08-15 23:33:16 +02:00
}
for (var key in this) { }
>key : any
2014-08-15 23:33:16 +02:00
>this : any
class C {
>C : C
2014-08-15 23:33:16 +02:00
public temp() {
>temp : () => void
2014-08-15 23:33:16 +02:00
for (var x in this) {
>x : any
>this : C
2014-08-15 23:33:16 +02:00
}
}
}