TypeScript/tests/baselines/reference/compoundVarDecl1.types

20 lines
645 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/compoundVarDecl1.ts ===
module Foo { var a = 1, b = 1; a = b + 2; }
2015-04-13 23:01:57 +02:00
>Foo : typeof Foo, Symbol(Foo, Decl(compoundVarDecl1.ts, 0, 0))
>a : number, Symbol(a, Decl(compoundVarDecl1.ts, 0, 16))
2015-04-13 21:36:11 +02:00
>1 : number
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(compoundVarDecl1.ts, 0, 23))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
>a = b + 2 : number
2015-04-13 23:01:57 +02:00
>a : number, Symbol(a, Decl(compoundVarDecl1.ts, 0, 16))
2014-08-15 23:33:16 +02:00
>b + 2 : number
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(compoundVarDecl1.ts, 0, 23))
2015-04-13 21:36:11 +02:00
>2 : number
2014-08-15 23:33:16 +02:00
var foo = 4, bar = 5;
2015-04-13 23:01:57 +02:00
>foo : number, Symbol(foo, Decl(compoundVarDecl1.ts, 2, 3))
2015-04-13 21:36:11 +02:00
>4 : number
2015-04-13 23:01:57 +02:00
>bar : number, Symbol(bar, Decl(compoundVarDecl1.ts, 2, 12))
2015-04-13 21:36:11 +02:00
>5 : number
2014-08-15 23:33:16 +02:00