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 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366
|
=== tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithIdenticalPrimitiveType.ts ===
enum E { a, b, c }
>E : E
>a : E.a
>b : E.b
>c : E.c
var a: number;
>a : number
var b: boolean;
>b : boolean
var c: string;
>c : string
var d: void;
>d : void
var e: E;
>e : E
// operator <
var ra1 = a < a;
>ra1 : boolean
>a < a : boolean
>a : number
>a : number
var ra2 = b < b;
>ra2 : boolean
>b < b : boolean
>b : boolean
>b : boolean
var ra3 = c < c;
>ra3 : boolean
>c < c : boolean
>c : string
>c : string
var ra4 = d < d;
>ra4 : boolean
>d < d : boolean
>d : void
>d : void
var ra5 = e < e;
>ra5 : boolean
>e < e : boolean
>e : E
>e : E
var ra6 = null < null;
>ra6 : boolean
>null < null : boolean
>null : null
>null : null
var ra7 = undefined < undefined;
>ra7 : boolean
>undefined < undefined : boolean
>undefined : undefined
>undefined : undefined
// operator >
var rb1 = a > a;
>rb1 : boolean
>a > a : boolean
>a : number
>a : number
var rb2 = b > b;
>rb2 : boolean
>b > b : boolean
>b : boolean
>b : boolean
var rb3 = c > c;
>rb3 : boolean
>c > c : boolean
>c : string
>c : string
var rb4 = d > d;
>rb4 : boolean
>d > d : boolean
>d : void
>d : void
var rb5 = e > e;
>rb5 : boolean
>e > e : boolean
>e : E
>e : E
var rb6 = null > null;
>rb6 : boolean
>null > null : boolean
>null : null
>null : null
var rb7 = undefined > undefined;
>rb7 : boolean
>undefined > undefined : boolean
>undefined : undefined
>undefined : undefined
// operator <=
var rc1 = a <= a;
>rc1 : boolean
>a <= a : boolean
>a : number
>a : number
var rc2 = b <= b;
>rc2 : boolean
>b <= b : boolean
>b : boolean
>b : boolean
var rc3 = c <= c;
>rc3 : boolean
>c <= c : boolean
>c : string
>c : string
var rc4 = d <= d;
>rc4 : boolean
>d <= d : boolean
>d : void
>d : void
var rc5 = e <= e;
>rc5 : boolean
>e <= e : boolean
>e : E
>e : E
var rc6 = null <= null;
>rc6 : boolean
>null <= null : boolean
>null : null
>null : null
var rc7 = undefined <= undefined;
>rc7 : boolean
>undefined <= undefined : boolean
>undefined : undefined
>undefined : undefined
// operator >=
var rd1 = a >= a;
>rd1 : boolean
>a >= a : boolean
>a : number
>a : number
var rd2 = b >= b;
>rd2 : boolean
>b >= b : boolean
>b : boolean
>b : boolean
var rd3 = c >= c;
>rd3 : boolean
>c >= c : boolean
>c : string
>c : string
var rd4 = d >= d;
>rd4 : boolean
>d >= d : boolean
>d : void
>d : void
var rd5 = e >= e;
>rd5 : boolean
>e >= e : boolean
>e : E
>e : E
var rd6 = null >= null;
>rd6 : boolean
>null >= null : boolean
>null : null
>null : null
var rd7 = undefined >= undefined;
>rd7 : boolean
>undefined >= undefined : boolean
>undefined : undefined
>undefined : undefined
// operator ==
var re1 = a == a;
>re1 : boolean
>a == a : boolean
>a : number
>a : number
var re2 = b == b;
>re2 : boolean
>b == b : boolean
>b : boolean
>b : boolean
var re3 = c == c;
>re3 : boolean
>c == c : boolean
>c : string
>c : string
var re4 = d == d;
>re4 : boolean
>d == d : boolean
>d : void
>d : void
var re5 = e == e;
>re5 : boolean
>e == e : boolean
>e : E
>e : E
var re6 = null == null;
>re6 : boolean
>null == null : boolean
>null : null
>null : null
var re7 = undefined == undefined;
>re7 : boolean
>undefined == undefined : boolean
>undefined : undefined
>undefined : undefined
// operator !=
var rf1 = a != a;
>rf1 : boolean
>a != a : boolean
>a : number
>a : number
var rf2 = b != b;
>rf2 : boolean
>b != b : boolean
>b : boolean
>b : boolean
var rf3 = c != c;
>rf3 : boolean
>c != c : boolean
>c : string
>c : string
var rf4 = d != d;
>rf4 : boolean
>d != d : boolean
>d : void
>d : void
var rf5 = e != e;
>rf5 : boolean
>e != e : boolean
>e : E
>e : E
var rf6 = null != null;
>rf6 : boolean
>null != null : boolean
>null : null
>null : null
var rf7 = undefined != undefined;
>rf7 : boolean
>undefined != undefined : boolean
>undefined : undefined
>undefined : undefined
// operator ===
var rg1 = a === a;
>rg1 : boolean
>a === a : boolean
>a : number
>a : number
var rg2 = b === b;
>rg2 : boolean
>b === b : boolean
>b : boolean
>b : boolean
var rg3 = c === c;
>rg3 : boolean
>c === c : boolean
>c : string
>c : string
var rg4 = d === d;
>rg4 : boolean
>d === d : boolean
>d : void
>d : void
var rg5 = e === e;
>rg5 : boolean
>e === e : boolean
>e : E
>e : E
var rg6 = null === null;
>rg6 : boolean
>null === null : boolean
>null : null
>null : null
var rg7 = undefined === undefined;
>rg7 : boolean
>undefined === undefined : boolean
>undefined : undefined
>undefined : undefined
// operator !==
var rh1 = a !== a;
>rh1 : boolean
>a !== a : boolean
>a : number
>a : number
var rh2 = b !== b;
>rh2 : boolean
>b !== b : boolean
>b : boolean
>b : boolean
var rh3 = c !== c;
>rh3 : boolean
>c !== c : boolean
>c : string
>c : string
var rh4 = d !== d;
>rh4 : boolean
>d !== d : boolean
>d : void
>d : void
var rh5 = e !== e;
>rh5 : boolean
>e !== e : boolean
>e : E
>e : E
var rh6 = null !== null;
>rh6 : boolean
>null !== null : boolean
>null : null
>null : null
var rh7 = undefined !== undefined;
>rh7 : boolean
>undefined !== undefined : boolean
>undefined : undefined
>undefined : undefined
|