File: contextuallyTypingOrOperator2.symbols

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (22 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
=== 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, --, --))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 0, 42))
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
>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, --, --))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 10))
>length : Symbol(String.length, Decl(lib.d.ts, --, --))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46))
>s : Symbol(s, Decl(contextuallyTypingOrOperator2.ts, 2, 46))