File: thisTypeInAccessorsNegative.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 (53 lines) | stat: -rw-r--r-- 2,318 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
=== tests/cases/conformance/types/thisType/thisTypeInAccessorsNegative.ts ===
interface Foo {
>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0))

    n: number;
>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15))

    x: number;
>x : Symbol(Foo.x, Decl(thisTypeInAccessorsNegative.ts, 1, 14))
}
interface Bar {
>Bar : Symbol(Bar, Decl(thisTypeInAccessorsNegative.ts, 3, 1))

    wrong: "place" | "time" | "method" | "technique";
>wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15))
}
const mismatch = {
>mismatch : Symbol(mismatch, Decl(thisTypeInAccessorsNegative.ts, 7, 5))

    n: 13,
>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 7, 18))

    get x(this: Foo) { return this.n; },
>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 8, 10), Decl(thisTypeInAccessorsNegative.ts, 9, 40))
>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 9, 10))
>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0))
>this.n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15))
>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 9, 10))
>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15))

    set x(this: Bar, n) { this.wrong = "method"; }
>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 8, 10), Decl(thisTypeInAccessorsNegative.ts, 9, 40))
>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 10, 10))
>Bar : Symbol(Bar, Decl(thisTypeInAccessorsNegative.ts, 3, 1))
>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 10, 20))
>this.wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15))
>this : Symbol(this, Decl(thisTypeInAccessorsNegative.ts, 10, 10))
>wrong : Symbol(Bar.wrong, Decl(thisTypeInAccessorsNegative.ts, 4, 15))
}
const contextual: Foo = {
>contextual : Symbol(contextual, Decl(thisTypeInAccessorsNegative.ts, 12, 5))
>Foo : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0))

    n: 16,
>n : Symbol(n, Decl(thisTypeInAccessorsNegative.ts, 12, 25))

    get x() { return this.n; }
>x : Symbol(x, Decl(thisTypeInAccessorsNegative.ts, 13, 10))
>this.n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15))
>this : Symbol(Foo, Decl(thisTypeInAccessorsNegative.ts, 0, 0))
>n : Symbol(Foo.n, Decl(thisTypeInAccessorsNegative.ts, 0, 15))
}