Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Highlight a problem: spread syntax in a method call #32

Description

@kcir3v4M

Hello,

I've got a problem with the current version 0.0.17
My current environment is
Visual Studio Code 1.18.1
TypeScript 2.6.1

The following code works correctly (runtime) but the extension angular2-inline highlights a problem with the call this._foo(...args)

Marked as:
[ts] Expected 6 arguments, but got a minimum of 0.
this: this

sample class

export class SpreadTest {
    public test(): void {
        const args = [0, 1, 2, ...['1s3', 3, ...['a']]];
        this._foo(...args);
    }

    private _foo(a, b, c, d, e, f): void {
        console.dir('spread ON');
        console.dir(a);
        console.dir(b);
        console.dir(c);
        console.dir(d);
        console.dir(e);
        console.dir(f);
        console.dir('spread OFF');
    }
}

Thanks in advance,
Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions