File: genericCallsWithoutParens.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (22 lines) | stat: -rw-r--r-- 784 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/genericCallsWithoutParens.ts ===
function f<T>() { }
>f : Symbol(f, Decl(genericCallsWithoutParens.ts, 0, 0))
>T : Symbol(T, Decl(genericCallsWithoutParens.ts, 0, 11))

var r = f<number>; // parse error
>r : Symbol(r, Decl(genericCallsWithoutParens.ts, 1, 3))
>f : Symbol(f, Decl(genericCallsWithoutParens.ts, 0, 0))

class C<T> {
>C : Symbol(C, Decl(genericCallsWithoutParens.ts, 1, 18))
>T : Symbol(T, Decl(genericCallsWithoutParens.ts, 3, 8))

    foo: T;
>foo : Symbol(C.foo, Decl(genericCallsWithoutParens.ts, 3, 12))
>T : Symbol(T, Decl(genericCallsWithoutParens.ts, 3, 8))
}
var c = new C<number>; // parse error
>c : Symbol(c, Decl(genericCallsWithoutParens.ts, 6, 3))
>C : Symbol(C, Decl(genericCallsWithoutParens.ts, 1, 18))