Skip to content

Commit

Permalink
update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jan 3, 2025
1 parent 4aa5ca7 commit 3095dad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ function foo<T>(x: (a: T) => T) {
}

var r = foo(<U>(x: U) => ''); // {}
>r : string
> : ^^^^^^
>foo(<U>(x: U) => '') : string
> : ^^^^^^
>r : unknown
> : ^^^^^^^
>foo(<U>(x: U) => '') : unknown
> : ^^^^^^^
>foo : <T>(x: (a: T) => T) => T
> : ^ ^^ ^^ ^^^^^^
><U>(x: U) => '' : <U>(x: U) => string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ module ImmediatelyFix {
> : ^^^^^^^^

var r = c.foo(<U>(x: U) => ''); // {}
>r : string
> : ^^^^^^
>c.foo(<U>(x: U) => '') : string
> : ^^^^^^
>r : unknown
> : ^^^^^^^
>c.foo(<U>(x: U) => '') : unknown
> : ^^^^^^^
>c.foo : <T>(x: (a: T) => T) => T
> : ^ ^^ ^^^ ^^^^^^^^^^^^^^^
>c : C<number>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jsxChildrenGenericContextualTypes.tsx(20,46): error TS2322: Type '"y"' is not assignable to type '"x"'.
jsxChildrenGenericContextualTypes.tsx(21,42): error TS2322: Type '"y"' is not assignable to type '"x"'.
jsxChildrenGenericContextualTypes.tsx(22,45): error TS2322: Type 'number' is not assignable to type 'string'.
jsxChildrenGenericContextualTypes.tsx(22,45): error TS2322: Type 'number' is not assignable to type '"x"'.


==== jsxChildrenGenericContextualTypes.tsx (3 errors) ====
Expand Down Expand Up @@ -33,5 +33,5 @@ jsxChildrenGenericContextualTypes.tsx(22,45): error TS2322: Type 'number' is not
!!! related TS6502 jsxChildrenGenericContextualTypes.tsx:13:44: The expected type comes from the return type of this signature.
const mismatched = <ElemLit prop="x">{() => 12}</ElemLit>
~~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
!!! error TS2322: Type 'number' is not assignable to type '"x"'.
!!! related TS6502 jsxChildrenGenericContextualTypes.tsx:13:44: The expected type comes from the return type of this signature.

0 comments on commit 3095dad

Please sign in to comment.