File: inOperatorWithInvalidOperands.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 (135 lines) | stat: -rw-r--r-- 5,245 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
=== tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts ===
enum E { a }
>E : Symbol(E, Decl(inOperatorWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(inOperatorWithInvalidOperands.ts, 0, 8))

var x: any;
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

// invalid left operands
// the left operand is required to be of type Any, the String primitive type, or the Number primitive type
var a1: boolean;
>a1 : Symbol(a1, Decl(inOperatorWithInvalidOperands.ts, 6, 3))

var a2: void;
>a2 : Symbol(a2, Decl(inOperatorWithInvalidOperands.ts, 7, 3))

var a3: {};
>a3 : Symbol(a3, Decl(inOperatorWithInvalidOperands.ts, 8, 3))

var a4: E
>a4 : Symbol(a4, Decl(inOperatorWithInvalidOperands.ts, 9, 3))
>E : Symbol(E, Decl(inOperatorWithInvalidOperands.ts, 0, 0))

var ra1 = a1 in x;
>ra1 : Symbol(ra1, Decl(inOperatorWithInvalidOperands.ts, 11, 3))
>a1 : Symbol(a1, Decl(inOperatorWithInvalidOperands.ts, 6, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra2 = a2 in x;
>ra2 : Symbol(ra2, Decl(inOperatorWithInvalidOperands.ts, 12, 3))
>a2 : Symbol(a2, Decl(inOperatorWithInvalidOperands.ts, 7, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra3 = a3 in x;
>ra3 : Symbol(ra3, Decl(inOperatorWithInvalidOperands.ts, 13, 3))
>a3 : Symbol(a3, Decl(inOperatorWithInvalidOperands.ts, 8, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra4 = a4 in x;
>ra4 : Symbol(ra4, Decl(inOperatorWithInvalidOperands.ts, 14, 3))
>a4 : Symbol(a4, Decl(inOperatorWithInvalidOperands.ts, 9, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra5 = null in x;
>ra5 : Symbol(ra5, Decl(inOperatorWithInvalidOperands.ts, 15, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra6 = undefined in x;
>ra6 : Symbol(ra6, Decl(inOperatorWithInvalidOperands.ts, 16, 3))
>undefined : Symbol(undefined)
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra7 = E.a in x;
>ra7 : Symbol(ra7, Decl(inOperatorWithInvalidOperands.ts, 17, 3))
>E.a : Symbol(E.a, Decl(inOperatorWithInvalidOperands.ts, 0, 8))
>E : Symbol(E, Decl(inOperatorWithInvalidOperands.ts, 0, 0))
>a : Symbol(E.a, Decl(inOperatorWithInvalidOperands.ts, 0, 8))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra8 = false in x;
>ra8 : Symbol(ra8, Decl(inOperatorWithInvalidOperands.ts, 18, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var ra9 = {} in x;
>ra9 : Symbol(ra9, Decl(inOperatorWithInvalidOperands.ts, 19, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

// invalid right operands
// the right operand is required to be of type Any, an object type, or a type parameter type
var b1: number;
>b1 : Symbol(b1, Decl(inOperatorWithInvalidOperands.ts, 23, 3))

var b2: boolean;
>b2 : Symbol(b2, Decl(inOperatorWithInvalidOperands.ts, 24, 3))

var b3: string;
>b3 : Symbol(b3, Decl(inOperatorWithInvalidOperands.ts, 25, 3))

var b4: void;
>b4 : Symbol(b4, Decl(inOperatorWithInvalidOperands.ts, 26, 3))

var b5: string | number;
>b5 : Symbol(b5, Decl(inOperatorWithInvalidOperands.ts, 27, 3))

var rb1 = x in b1;
>rb1 : Symbol(rb1, Decl(inOperatorWithInvalidOperands.ts, 29, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>b1 : Symbol(b1, Decl(inOperatorWithInvalidOperands.ts, 23, 3))

var rb2 = x in b2;
>rb2 : Symbol(rb2, Decl(inOperatorWithInvalidOperands.ts, 30, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>b2 : Symbol(b2, Decl(inOperatorWithInvalidOperands.ts, 24, 3))

var rb3 = x in b3;
>rb3 : Symbol(rb3, Decl(inOperatorWithInvalidOperands.ts, 31, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>b3 : Symbol(b3, Decl(inOperatorWithInvalidOperands.ts, 25, 3))

var rb4 = x in b4;
>rb4 : Symbol(rb4, Decl(inOperatorWithInvalidOperands.ts, 32, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>b4 : Symbol(b4, Decl(inOperatorWithInvalidOperands.ts, 26, 3))

var rb5 = x in b5;
>rb5 : Symbol(rb5, Decl(inOperatorWithInvalidOperands.ts, 33, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>b5 : Symbol(b5, Decl(inOperatorWithInvalidOperands.ts, 27, 3))

var rb6 = x in 0;
>rb6 : Symbol(rb6, Decl(inOperatorWithInvalidOperands.ts, 34, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var rb7 = x in false;
>rb7 : Symbol(rb7, Decl(inOperatorWithInvalidOperands.ts, 35, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var rb8 = x in '';
>rb8 : Symbol(rb8, Decl(inOperatorWithInvalidOperands.ts, 36, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var rb9 = x in null;
>rb9 : Symbol(rb9, Decl(inOperatorWithInvalidOperands.ts, 37, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))

var rb10 = x in undefined;
>rb10 : Symbol(rb10, Decl(inOperatorWithInvalidOperands.ts, 38, 3))
>x : Symbol(x, Decl(inOperatorWithInvalidOperands.ts, 2, 3))
>undefined : Symbol(undefined)


// both operands are invalid
var rc1 = {} in '';
>rc1 : Symbol(rc1, Decl(inOperatorWithInvalidOperands.ts, 42, 3))