TypeScript/tests/baselines/reference/sourceMapValidationTryCatchFinally.types

64 lines
1.8 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/sourceMapValidationTryCatchFinally.ts ===
var x = 10;
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
try {
x = x + 1;
>x = x + 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x + 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
} catch (e) {
2015-04-13 23:01:57 +02:00
>e : any, Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 3, 9))
2014-08-15 23:33:16 +02:00
x = x - 1;
>x = x - 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x - 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
} finally {
x = x * 10;
>x = x * 10 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x * 10 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
}
try
{
x = x + 1;
>x = x + 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x + 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
throw new Error();
>new Error() : Error
2015-04-13 23:01:57 +02:00
>Error : ErrorConstructor, Symbol(Error, Decl(lib.d.ts, 876, 38), Decl(lib.d.ts, 889, 11))
2014-08-15 23:33:16 +02:00
}
catch (e)
2015-04-13 23:01:57 +02:00
>e : any, Symbol(e, Decl(sourceMapValidationTryCatchFinally.ts, 13, 7))
2014-08-15 23:33:16 +02:00
{
x = x - 1;
>x = x - 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x - 1 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
finally
{
x = x * 10;
>x = x * 10 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2014-08-15 23:33:16 +02:00
>x * 10 : number
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationTryCatchFinally.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
}