Skip to content

Bug: Expects blank line at overloading #17

@Xenya0815

Description

@Xenya0815

Used versions

Code

class X {
  foo(x: number, y: string): string;
  foo( y: string): number;
  foo(...args: any): string | number {
    return 42;
  }
}

Expected behavior
No error

Actual behavior
It wants to have a blank line between the function declarations.

fix changes it to

class X {
  foo(x: number, y: string): string;
  
  foo( y: string): number;
  
  foo(...args: any): string | number {
    return 42;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions