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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #1

Open
ehrlichja opened this issue May 23, 2019 · 1 comment
Open

Compilation error #1

ehrlichja opened this issue May 23, 2019 · 1 comment

Comments

@ehrlichja
Copy link

ehrlichja commented May 23, 2019

Clean checkout, running tsc. I also get this error when I install with npm into another project.

typescript/Range.ts:10:14 - error TS2417: Class static side 'typeof Range' incorrectly extends base class static side 'typeof Seq'.
  Types of property 'from' are incompatible.
    Type '(lengthOrStart: number, end?: number, step?: number) => Range' is not assignable to type '<A>(...vals: any[]) => Seq<A>'.
      Type 'Range' is not assignable to type 'Seq<A>'.
        Types of property 'collectFirst' are incompatible.
          Type '<B>(filter: (value: number) => boolean) => (mapper: (value: number) => B) => Option<B>' is not assignable to type '<B>(filter: (value: A) => boolean) => (mapper: (value: A) => B) => Option<B>'.
            Types of parameters 'filter' and 'filter' are incompatible.
              Types of parameters 'value' and 'value' are incompatible.
                Type 'number' is not assignable to type 'A'.

10 export class Range extends Seq<number> {
                ~~~~~


Found 1 error.

Typescript Version 3.4.5.

@evan108108
Copy link

I get the same error.

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

2 participants