Skip to content

Generic arrow function expressions cause an unexpected highlighting #674

@vantm

Description

@vantm

When I used generic arrow functions in RunJS, the statements that followed were highlighted incorrectly

Example code:

interface HasName {
  name: string;
}

function Test1<T extends HasName>(a: T) {
  return a.name.toUpperCase();
}

const Test2 = <T extends HasName>(a: T) => {
  return a.name.toUpperCase();
};

function Test3() {
  return 1;
}

Test1({ name: 'John Doe' });
Test2({ name: 'John Doe' });
Test3();

Image

Version: 3.0.3

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