@@ -390,27 +390,13 @@ References:
390390 ^^^^^^ [2]
391391
392392
393- Error ---------------------------------------------------------------------------------------------------- tvar4.js:38:1
394-
395- Cannot call `fn3` because in type argument `Keys`: property `p` is missing in object type [1]. [prop-missing]
396-
397- tvar4.js:38:1
398- 38| fn3((x: {foo: number}) => {})({foo: 42});
399- ^^^
400-
401- References:
402- tvar4.js:38:9
403- 38| fn3((x: {foo: number}) => {})({foo: 42});
404- ^^^^^^^^^^^^^ [1]
405-
406-
407- Error ---------------------------------------------------------------------------------------------------- tvar4.js:38:9
393+ Error ---------------------------------------------------------------------------------------------------- tvar4.js:35:9
408394
409395Cannot call `fn3` because in type argument `T`: property `p` is missing in object type [1] but exists in object
410396type [2]. [incompatible-type]
411397
412- tvar4.js:38 :9
413- 38 | fn3((x: {foo: number}) => {})({foo: 42});
398+ tvar4.js:35 :9
399+ 35 | fn3((x: {foo: number}) => {})({foo: 42}); // OK
414400 ^^^^^^^^^^^^^ [1]
415401
416402References:
@@ -419,62 +405,62 @@ References:
419405 ^^^^^^^^ [2]
420406
421407
422- Error --------------------------------------------------------------------------------------------------- tvar4.js:43 :17
408+ Error --------------------------------------------------------------------------------------------------- tvar4.js:40 :17
423409
424410Cannot call `a` with object literal bound to the first parameter because object literal [1] is incompatible with
425411`T` [2]. [incompatible-type]
426412
427- tvar4.js:43 :17
428- 43 | return p => a({p});
413+ tvar4.js:40 :17
414+ 40 | return p => a({p});
429415 ^^^ [1]
430416
431417References:
432- tvar4.js:40 :32
433- 40 | function fn4<T: {|p: any|}>(a: T => void): (T['p']) => void {
418+ tvar4.js:37 :32
419+ 37 | function fn4<T: {|p: any|}>(a: T => void): (T['p']) => void {
434420 ^ [2]
435421
436422
437- Error --------------------------------------------------------------------------------------------------- tvar4.js:47 :31
423+ Error --------------------------------------------------------------------------------------------------- tvar4.js:44 :31
438424
439425Cannot call `fn4(...)` with `42` bound to the first parameter because number [1] is incompatible with string [2].
440426[incompatible-type]
441427
442- tvar4.js:47 :31
443- 47 | fn4((x: {|p: string|}) => {})(42);
428+ tvar4.js:44 :31
429+ 44 | fn4((x: {|p: string|}) => {})(42);
444430 ^^ [1]
445431
446432References:
447- tvar4.js:47 :14
448- 47 | fn4((x: {|p: string|}) => {})(42);
433+ tvar4.js:44 :14
434+ 44 | fn4((x: {|p: string|}) => {})(42);
449435 ^^^^^^ [2]
450436
451437
452- Error ---------------------------------------------------------------------------------------------------- tvar4.js:51 :1
438+ Error ---------------------------------------------------------------------------------------------------- tvar4.js:48 :1
453439
454440Cannot call `fn4` because property `p` is missing in object type [1]. [prop-missing]
455441
456- tvar4.js:51 :1
457- 51 | fn4((x: {||}) => {})(42);
442+ tvar4.js:48 :1
443+ 48 | fn4((x: {||}) => {})(42);
458444 ^^^
459445
460446References:
461- tvar4.js:51 :9
462- 51 | fn4((x: {||}) => {})(42);
447+ tvar4.js:48 :9
448+ 48 | fn4((x: {||}) => {})(42);
463449 ^^^^ [1]
464450
465451
466- Error ---------------------------------------------------------------------------------------------------- tvar4.js:51 :9
452+ Error ---------------------------------------------------------------------------------------------------- tvar4.js:48 :9
467453
468454Cannot call `fn4` because in type argument `T`: property `p` is missing in object type [1] but exists in object
469455type [2]. [incompatible-type]
470456
471- tvar4.js:51 :9
472- 51 | fn4((x: {||}) => {})(42);
457+ tvar4.js:48 :9
458+ 48 | fn4((x: {||}) => {})(42);
473459 ^^^^ [1]
474460
475461References:
476- tvar4.js:40 :17
477- 40 | function fn4<T: {|p: any|}>(a: T => void): (T['p']) => void {
462+ tvar4.js:37 :17
463+ 37 | function fn4<T: {|p: any|}>(a: T => void): (T['p']) => void {
478464 ^^^^^^^^^^ [2]
479465
480466
@@ -598,4 +584,4 @@ References:
598584
599585
600586
601- Found 38 errors
587+ Found 37 errors
0 commit comments