@@ -8317,8 +8317,8 @@ Object {
8317
8317
8318
8318
exports [` Member expression type combinations: Invalid type combinations return TypeError 54` ] = `
8319
8319
Object {
8320
- " elaborate" : " Expected number as prop, got boolean." ,
8321
- " explain" : " Expected number as prop, got boolean." ,
8320
+ " elaborate" : " Expected array index as prop, got boolean." ,
8321
+ " explain" : " Expected array index as prop, got boolean." ,
8322
8322
" left" : Array [
8323
8323
2 ,
8324
8324
],
@@ -8328,8 +8328,8 @@ Object {
8328
8328
8329
8329
exports [` Member expression type combinations: Invalid type combinations return TypeError 55` ] = `
8330
8330
Object {
8331
- " elaborate" : " Expected number as prop, got string." ,
8332
- " explain" : " Expected number as prop, got string." ,
8331
+ " elaborate" : " Expected array index as prop, got string." ,
8332
+ " explain" : " Expected array index as prop, got string." ,
8333
8333
" left" : Array [
8334
8334
2 ,
8335
8335
],
@@ -8339,8 +8339,8 @@ Object {
8339
8339
8340
8340
exports [` Member expression type combinations: Invalid type combinations return TypeError 56` ] = `
8341
8341
Object {
8342
- " elaborate" : " Expected number as prop, got function." ,
8343
- " explain" : " Expected number as prop, got function." ,
8342
+ " elaborate" : " Expected array index as prop, got function." ,
8343
+ " explain" : " Expected array index as prop, got function." ,
8344
8344
" left" : Array [
8345
8345
2 ,
8346
8346
],
@@ -8350,8 +8350,8 @@ Object {
8350
8350
8351
8351
exports [` Member expression type combinations: Invalid type combinations return TypeError 57` ] = `
8352
8352
Object {
8353
- " elaborate" : " Expected number as prop, got function." ,
8354
- " explain" : " Expected number as prop, got function." ,
8353
+ " elaborate" : " Expected array index as prop, got function." ,
8354
+ " explain" : " Expected array index as prop, got function." ,
8355
8355
" left" : Array [
8356
8356
2 ,
8357
8357
],
@@ -8361,8 +8361,8 @@ Object {
8361
8361
8362
8362
exports [` Member expression type combinations: Invalid type combinations return TypeError 58` ] = `
8363
8363
Object {
8364
- " elaborate" : " Expected number as prop, got object." ,
8365
- " explain" : " Expected number as prop, got object." ,
8364
+ " elaborate" : " Expected array index as prop, got object." ,
8365
+ " explain" : " Expected array index as prop, got object." ,
8366
8366
" left" : Array [
8367
8367
2 ,
8368
8368
],
@@ -8374,8 +8374,8 @@ Object {
8374
8374
8375
8375
exports [` Member expression type combinations: Invalid type combinations return TypeError 59` ] = `
8376
8376
Object {
8377
- " elaborate" : " Expected number as prop, got array." ,
8378
- " explain" : " Expected number as prop, got array." ,
8377
+ " elaborate" : " Expected array index as prop, got array." ,
8378
+ " explain" : " Expected array index as prop, got array." ,
8379
8379
" left" : Array [
8380
8380
2 ,
8381
8381
],
@@ -8387,8 +8387,8 @@ Object {
8387
8387
8388
8388
exports [` Member expression type combinations: Invalid type combinations return TypeError 60` ] = `
8389
8389
Object {
8390
- " elaborate" : " Expected number as prop, got undefined." ,
8391
- " explain" : " Expected number as prop, got undefined." ,
8390
+ " elaborate" : " Expected array index as prop, got undefined." ,
8391
+ " explain" : " Expected array index as prop, got undefined." ,
8392
8392
" left" : Array [
8393
8393
2 ,
8394
8394
],
@@ -8398,8 +8398,8 @@ Object {
8398
8398
8399
8399
exports [` Member expression type combinations: Invalid type combinations return TypeError 61` ] = `
8400
8400
Object {
8401
- " elaborate" : " Expected number as prop, got null." ,
8402
- " explain" : " Expected number as prop, got null." ,
8401
+ " elaborate" : " Expected array index as prop, got null." ,
8402
+ " explain" : " Expected array index as prop, got null." ,
8403
8403
" left" : Array [
8404
8404
2 ,
8405
8405
],
@@ -8577,6 +8577,39 @@ Object {
8577
8577
}
8578
8578
` ;
8579
8579
8580
+ exports [` Member expression type combinations: Invalid type combinations return TypeError 80` ] = `
8581
+ Object {
8582
+ " elaborate" : " Expected array index as prop, got other number." ,
8583
+ " explain" : " Expected array index as prop, got other number." ,
8584
+ " left" : Array [
8585
+ 2 ,
8586
+ ],
8587
+ " right" : - 1 ,
8588
+ }
8589
+ ` ;
8590
+
8591
+ exports [` Member expression type combinations: Invalid type combinations return TypeError 81` ] = `
8592
+ Object {
8593
+ " elaborate" : " Expected array index as prop, got other number." ,
8594
+ " explain" : " Expected array index as prop, got other number." ,
8595
+ " left" : Array [
8596
+ 2 ,
8597
+ ],
8598
+ " right" : 0.5 ,
8599
+ }
8600
+ ` ;
8601
+
8602
+ exports [` Member expression type combinations: Invalid type combinations return TypeError 82` ] = `
8603
+ Object {
8604
+ " elaborate" : " Expected array index as prop, got other number." ,
8605
+ " explain" : " Expected array index as prop, got other number." ,
8606
+ " left" : Array [
8607
+ 2 ,
8608
+ ],
8609
+ " right" : 4294967295 ,
8610
+ }
8611
+ ` ;
8612
+
8580
8613
exports [` Ternary/if test expression type combinations: Invalid type combinations return TypeError 1` ] = `
8581
8614
Object {
8582
8615
" elaborate" : " Expected boolean as condition, got number." ,
0 commit comments