TypeScript/tests/baselines/reference/contextuallyTypingOrOperator2.symbols
2015-04-15 16:44:20 -07:00

23 lines
1.2 KiB
Plaintext

=== tests/cases/compiler/contextuallyTypingOrOperator2.ts ===
var v: { a: (_: string) => number } = { a: s => s.length } || { a: s => 1 };
>v : Symbol(v, Decl(contextuallyTypingOrOperator2.ts, 0, 3))
>a : Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 8))
>_ : Symbol(_, Decl(contextuallyTypingOrOperator2.ts, 0, 13))
>a : Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 39))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 42))
>s.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 42))
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
>a : Symbol(a, Decl(contextuallyTypingOrOperator2.ts, 0, 63))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 66))
var v2 = (s: string) => s.length || function (s) { s.aaa };
>v2 : Symbol(v2, Decl(contextuallyTypingOrOperator2.ts, 2, 3))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 10))
>s.length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 10))
>length : Symbol(String.length, Decl(lib.d.ts, 414, 19))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46))