File: typeFromPropertyAssignment30.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 (20 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
=== tests/cases/conformance/salsa/typeFromPropertyAssignment30.ts ===
interface Combo {
>Combo : Symbol(Combo, Decl(typeFromPropertyAssignment30.ts, 0, 0))

    (): number;
    p?: { [s: string]: number };
>p : Symbol(Combo.p, Decl(typeFromPropertyAssignment30.ts, 1, 15))
>s : Symbol(s, Decl(typeFromPropertyAssignment30.ts, 2, 11))
}
const c: Combo = () => 1
>c : Symbol(c, Decl(typeFromPropertyAssignment30.ts, 4, 5), Decl(typeFromPropertyAssignment30.ts, 4, 24))
>Combo : Symbol(Combo, Decl(typeFromPropertyAssignment30.ts, 0, 0))

// should not be an expando object, but contextually typed by Combo.p
c.p = {}
>c.p : Symbol(Combo.p, Decl(typeFromPropertyAssignment30.ts, 1, 15))
>c : Symbol(c, Decl(typeFromPropertyAssignment30.ts, 4, 5), Decl(typeFromPropertyAssignment30.ts, 4, 24))
>p : Symbol(Combo.p, Decl(typeFromPropertyAssignment30.ts, 1, 15))