File: identicalCallSignatures3.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 (33 lines) | stat: -rw-r--r-- 1,343 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
=== tests/cases/conformance/types/objectTypeLiteral/callSignatures/identicalCallSignatures3.ts ===
// Normally it is an error to have multiple overloads with identical signatures in a single type declaration.
// Here the multiple overloads come from multiple merged declarations, so we do not report errors.

interface I {
>I : Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1))

    (x: number): string;
>x : Symbol(x, Decl(identicalCallSignatures3.ts, 4, 5))
}

interface I {
>I : Symbol(I, Decl(identicalCallSignatures3.ts, 0, 0), Decl(identicalCallSignatures3.ts, 5, 1))

    (x: number): string;
>x : Symbol(x, Decl(identicalCallSignatures3.ts, 8, 5))
}

interface I2<T> {
>I2 : Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1))
>T : Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13))

    (x: number): string;
>x : Symbol(x, Decl(identicalCallSignatures3.ts, 12, 5))
}

interface I2<T> {
>I2 : Symbol(I2, Decl(identicalCallSignatures3.ts, 9, 1), Decl(identicalCallSignatures3.ts, 13, 1))
>T : Symbol(T, Decl(identicalCallSignatures3.ts, 11, 13), Decl(identicalCallSignatures3.ts, 15, 13))

    (x: number): string;
>x : Symbol(x, Decl(identicalCallSignatures3.ts, 16, 5))
}