@@ -259,172 +259,172 @@ References:
259
259
^ [1]
260
260
261
261
262
- Error ----------------------------------------------------------------------------------------------- matching.js:202 :14
262
+ Error ----------------------------------------------------------------------------------------------- matching.js:220 :14
263
263
264
264
`match` is not exhaustively checked: object type [1] has not been fully checked against by the match patterns below.
265
265
[match-not-exhaustive]
266
266
267
- matching.js:202 :14
268
- 202 | const e2 = match (x) { // ERROR: `type: 'baz'` not checked
267
+ matching.js:220 :14
268
+ 220 | const e2 = match (x) { // ERROR: `type: 'baz'` not checked
269
269
^^^^^
270
270
271
271
References:
272
- matching.js:193 :20
273
- 193 | | {type: 'baz', val: boolean};
272
+ matching.js:211 :20
273
+ 211 | | {type: 'baz', val: boolean};
274
274
^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
275
275
276
276
277
- Error ----------------------------------------------------------------------------------------------- matching.js:251 :14
277
+ Error ----------------------------------------------------------------------------------------------- matching.js:269 :14
278
278
279
279
`match` is not exhaustively checked: object type [1] has not been fully checked against by the match patterns below.
280
280
[match-not-exhaustive]
281
281
282
- matching.js:251 :14
283
- 251 | const e3 = match (x) { // ERROR: `type: 'bar', n: 2` not checked
282
+ matching.js:269 :14
283
+ 269 | const e3 = match (x) { // ERROR: `type: 'bar', n: 2` not checked
284
284
^^^^^
285
285
286
286
References:
287
- matching.js:236 :20
288
- 236 | | {type: 'bar', n: 2, val: boolean};
287
+ matching.js:254 :20
288
+ 254 | | {type: 'bar', n: 2, val: boolean};
289
289
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
290
290
291
291
292
- Error ----------------------------------------------------------------------------------------------- matching.js:279 :14
292
+ Error ----------------------------------------------------------------------------------------------- matching.js:297 :14
293
293
294
294
`match` is not exhaustively checked: object type [1] has not been fully checked against by the match patterns below.
295
295
[match-not-exhaustive]
296
296
297
- matching.js:279 :14
298
- 279 | const e2 = match (x) { // ERROR: `type: 'bar'` not checked
297
+ matching.js:297 :14
298
+ 297 | const e2 = match (x) { // ERROR: `type: 'bar'` not checked
299
299
^^^^^
300
300
301
301
References:
302
- matching.js:271 :20
303
- 271 | | {type: 'bar', val: string}
302
+ matching.js:289 :20
303
+ 289 | | {type: 'bar', val: string}
304
304
^^^^^^^^^^^^^^^^^^^^^^^^^^ [1]
305
305
306
306
307
- Error ----------------------------------------------------------------------------------------------- matching.js:297 :14
307
+ Error ----------------------------------------------------------------------------------------------- matching.js:315 :14
308
308
309
309
`match` is not exhaustively checked: tuple type [1] has not been fully checked against by the match patterns below.
310
310
[match-not-exhaustive]
311
311
312
- matching.js:297 :14
313
- 297 | const e2 = match (x) { // ERROR: `'baz'` element not checked
312
+ matching.js:315 :14
313
+ 315 | const e2 = match (x) { // ERROR: `'baz'` element not checked
314
314
^^^^^
315
315
316
316
References:
317
- matching.js:288 :20
318
- 288 | | ['baz', boolean];
317
+ matching.js:306 :20
318
+ 306 | | ['baz', boolean];
319
319
^^^^^^^^^^^^^^^^ [1]
320
320
321
321
322
- Error ----------------------------------------------------------------------------------------------- matching.js:335 :22
322
+ Error ----------------------------------------------------------------------------------------------- matching.js:353 :22
323
323
324
324
Cannot cast `a` to empty because boolean [1] is incompatible with empty [2]. [incompatible-cast]
325
325
326
- matching.js:335 :22
327
- 335 | [const a, _, _]: a as empty, // ERROR: `boolean` is not `empty`
326
+ matching.js:353 :22
327
+ 353 | [const a, _, _]: a as empty, // ERROR: `boolean` is not `empty`
328
328
^
329
329
330
330
References:
331
- matching.js:330 :21
332
- 330 | | [boolean, boolean, boolean];
331
+ matching.js:348 :21
332
+ 348 | | [boolean, boolean, boolean];
333
333
^^^^^^^ [1]
334
- matching.js:335 :27
335
- 335 | [const a, _, _]: a as empty, // ERROR: `boolean` is not `empty`
334
+ matching.js:353 :27
335
+ 353 | [const a, _, _]: a as empty, // ERROR: `boolean` is not `empty`
336
336
^^^^^ [2]
337
337
338
338
339
- Error ----------------------------------------------------------------------------------------------- matching.js:355 :16
339
+ Error ----------------------------------------------------------------------------------------------- matching.js:373 :16
340
340
341
341
Cannot cast `a` to string because number [1] is incompatible with string [2]. [incompatible-cast]
342
342
343
- matching.js:355 :16
344
- 355 | [const a]: a as string, // ERROR: `number` is not `string`
343
+ matching.js:373 :16
344
+ 373 | [const a]: a as string, // ERROR: `number` is not `string`
345
345
^
346
346
347
347
References:
348
- matching.js:351 :21
349
- 351 | declare const x: [number] | Array<string>;
348
+ matching.js:369 :21
349
+ 369 | declare const x: [number] | Array<string>;
350
350
^^^^^^ [1]
351
- matching.js:355 :21
352
- 355 | [const a]: a as string, // ERROR: `number` is not `string`
351
+ matching.js:373 :21
352
+ 373 | [const a]: a as string, // ERROR: `number` is not `string`
353
353
^^^^^^ [2]
354
354
355
355
356
- Error ----------------------------------------------------------------------------------------------- matching.js:375 :14
356
+ Error ----------------------------------------------------------------------------------------------- matching.js:393 :14
357
357
358
358
`match` is not exhaustively checked: tuple type [1] has not been fully checked against by the match patterns below.
359
359
[match-not-exhaustive]
360
360
361
- matching.js:375 :14
362
- 375 | const e2 = match (x) { // ERROR: does not match all possibilities
361
+ matching.js:393 :14
362
+ 393 | const e2 = match (x) { // ERROR: does not match all possibilities
363
363
^^^^^
364
364
365
365
References:
366
- matching.js:368 :20
367
- 368 | declare const x: [a: 0, b?: 1, c?: 2];
366
+ matching.js:386 :20
367
+ 386 | declare const x: [a: 0, b?: 1, c?: 2];
368
368
^^^^^^^^^^^^^^^^^^^^ [1]
369
369
370
370
371
- Error ----------------------------------------------------------------------------------------------- matching.js:379 :14
371
+ Error ----------------------------------------------------------------------------------------------- matching.js:397 :14
372
372
373
373
`match` is not exhaustively checked: tuple type [1] has not been fully checked against by the match patterns below.
374
374
[match-not-exhaustive]
375
375
376
- matching.js:379 :14
377
- 379 | const e3 = match (x) { // ERROR: does not match all possibilities
376
+ matching.js:397 :14
377
+ 397 | const e3 = match (x) { // ERROR: does not match all possibilities
378
378
^^^^^
379
379
380
380
References:
381
- matching.js:368 :20
382
- 368 | declare const x: [a: 0, b?: 1, c?: 2];
381
+ matching.js:386 :20
382
+ 386 | declare const x: [a: 0, b?: 1, c?: 2];
383
383
^^^^^^^^^^^^^^^^^^^^ [1]
384
384
385
385
386
- Error ----------------------------------------------------------------------------------------------- matching.js:383 :14
386
+ Error ----------------------------------------------------------------------------------------------- matching.js:401 :14
387
387
388
388
`match` is not exhaustively checked: tuple type [1] has not been fully checked against by the match patterns below.
389
389
[match-not-exhaustive]
390
390
391
- matching.js:383 :14
392
- 383 | const e4 = match (x) { // ERROR: does not match all possibilities
391
+ matching.js:401 :14
392
+ 401 | const e4 = match (x) { // ERROR: does not match all possibilities
393
393
^^^^^
394
394
395
395
References:
396
- matching.js:368 :20
397
- 368 | declare const x: [a: 0, b?: 1, c?: 2];
396
+ matching.js:386 :20
397
+ 386 | declare const x: [a: 0, b?: 1, c?: 2];
398
398
^^^^^^^^^^^^^^^^^^^^ [1]
399
399
400
400
401
- Error ----------------------------------------------------------------------------------------------- matching.js:397 :14
401
+ Error ----------------------------------------------------------------------------------------------- matching.js:415 :14
402
402
403
403
`match` is not exhaustively checked: tuple type [1] has not been fully checked against by the match patterns below.
404
404
[match-not-exhaustive]
405
405
406
- matching.js:397 :14
407
- 397 | const e2 = match (x) { // ERROR: does not match all elements
406
+ matching.js:415 :14
407
+ 415 | const e2 = match (x) { // ERROR: does not match all elements
408
408
^^^^^
409
409
410
410
References:
411
- matching.js:390 :20
412
- 390 | declare const x: [a: 0, ...];
411
+ matching.js:408 :20
412
+ 408 | declare const x: [a: 0, ...];
413
413
^^^^^^^^^^^ [1]
414
414
415
415
416
- Error ----------------------------------------------------------------------------------------------- matching.js:407 :14
416
+ Error ----------------------------------------------------------------------------------------------- matching.js:425 :14
417
417
418
418
`match` is not exhaustively checked: object type [1] has not been fully checked against by the match patterns below.
419
419
[match-not-exhaustive]
420
420
421
- matching.js:407 :14
422
- 407 | const e1 = match (x) {
421
+ matching.js:425 :14
422
+ 425 | const e1 = match (x) {
423
423
^^^^^
424
424
425
425
References:
426
- matching.js:404 :23
427
- 404 | type T = {foo: 1} | {foo: 2};
426
+ matching.js:422 :23
427
+ 422 | type T = {foo: 1} | {foo: 2};
428
428
^^^^^^^^ [1]
429
429
430
430
0 commit comments