2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/implicitAnyInCatch.ts ===
|
|
|
|
// this should not be an error
|
|
|
|
try { } catch (error) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>error : any, Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
if (error.number === -2147024809) { }
|
|
|
|
>error.number === -2147024809 : boolean
|
|
|
|
>error.number : any
|
2015-04-13 23:01:57 +02:00
|
|
|
>error : any, Symbol(error, Decl(implicitAnyInCatch.ts, 1, 15))
|
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) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>key : any, Symbol(key, Decl(implicitAnyInCatch.ts, 4, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
>this : any
|
|
|
|
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
public temp() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>temp : () => void, Symbol(temp, Decl(implicitAnyInCatch.ts, 6, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
for (var x in this) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : any, Symbol(x, Decl(implicitAnyInCatch.ts, 8, 16))
|
|
|
|
>this : C, Symbol(C, Decl(implicitAnyInCatch.ts, 4, 25))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|