File: prototypePropertyAssignmentMergedTypeReference.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (20 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
=== tests/cases/conformance/salsa/prototypePropertyAssignmentMergedTypeReference.js ===
// https://github.com/microsoft/TypeScript/issues/33993
var f = function() {
>f : Symbol(f, Decl(prototypePropertyAssignmentMergedTypeReference.js, 1, 3))

    return 12;
};

f.prototype.a = "a";
>f.prototype : Symbol(f.a, Decl(prototypePropertyAssignmentMergedTypeReference.js, 3, 2))
>f : Symbol(f, Decl(prototypePropertyAssignmentMergedTypeReference.js, 1, 3))
>prototype : Symbol(Function.prototype, Decl(lib.es5.d.ts, --, --))
>a : Symbol(f.a, Decl(prototypePropertyAssignmentMergedTypeReference.js, 3, 2))

/** @type {new () => f} */
var x = f;
>x : Symbol(x, Decl(prototypePropertyAssignmentMergedTypeReference.js, 8, 3))
>f : Symbol(f, Decl(prototypePropertyAssignmentMergedTypeReference.js, 1, 3))