Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests not passing for current typescript version #281

Open
mocanew opened this issue Dec 18, 2021 · 0 comments
Open

Tests not passing for current typescript version #281

mocanew opened this issue Dec 18, 2021 · 0 comments

Comments

@mocanew
Copy link

mocanew commented Dec 18, 2021

馃悶 Bug Report

Describe the bug

Starting from typescript@4.3.5, not all tests pass. I noticed a problem with F.Narrow and ran the test suite to confirm.

Reproduce the bug

npm test

Additional context

4.1.6: all pass

4.2.4: all pass

4.3.5:
tests/Any.ts:151:5 - error TS2322: Type '0' is not assignable to type '1'.
151     check<A.KnownKeys<T>, Exclude<A.Keys<T>, number>, Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/Any.ts:155:5 - error TS2322: Type '0' is not assignable to type '1'.
155     check<A.KnownKeys<{[k: string]: any} & {a: any}>, 'a', Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.4.4:
tests/Any.ts:151:5 - error TS2322: Type '0' is not assignable to type '1'.
151     check<A.KnownKeys<T>, Exclude<A.Keys<T>, number>, Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Any.ts:155:5 - error TS2322: Type '0' is not assignable to type '1'.
155     check<A.KnownKeys<{[k: string]: any} & {a: any}>, 'a', Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Function.ts:172:5 - error TS2322: Type '0' is not assignable to type '1'.
172     check<typeof test05, ['e', 2, true, {f: ['g', ['h']]}], Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Object.ts:524:5 - error TS2322: Type '0' is not assignable to type '1'.
524     check<O.ListOf<O_LISTOF_SYMBOL>, LISTOF_SYMBOL_O, Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4.5.4 & 4.6.0-dev.20211218:
tests/Any.ts:151:5 - error TS2322: Type '0' is not assignable to type '1'.
151     check<A.KnownKeys<T>, Exclude<A.Keys<T>, number>, Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Any.ts:155:5 - error TS2322: Type '0' is not assignable to type '1'.
155     check<A.KnownKeys<{[k: string]: any} & {a: any}>, 'a', Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Function.ts:172:5 - error TS2322: Type '0' is not assignable to type '1'.
172     check<typeof test05, ['e', 2, true, {f: ['g', ['h']]}], Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Object.ts:48:5 - error TS2322: Type '0' is not assignable to type '1'.
48     check<O.Assign<O_ASSIGN, Os_ASSIGN>, ASSIGN_O_Os, Test.Pass>(),
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/Object.ts:524:5 - error TS2322: Type '0' is not assignable to type '1'.
524     check<O.ListOf<O_LISTOF_SYMBOL>, LISTOF_SYMBOL_O, Test.Pass>(),
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant