MM icon indicating copy to clipboard operation
MM copied to clipboard

Compilation error

Open ehrlichja opened this issue 6 years ago • 1 comments

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.

ehrlichja avatar May 23 '19 16:05 ehrlichja

I get the same error.

evan108108 avatar Dec 08 '21 17:12 evan108108