Skip to content

Commit

Permalink
fix: Arrow methods did not have modifiers set properly
Browse files Browse the repository at this point in the history
Fixes #1452
  • Loading branch information
Gerrit0 committed Jan 5, 2021
1 parent 37e8a3c commit 9b4f898
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 737 deletions.
1 change: 1 addition & 0 deletions src/lib/converter/symbols.ts
Expand Up @@ -572,6 +572,7 @@ function convertArrowAsMethod(
symbol,
nameOverride
);
setModifiers(arrow.parent as ts.PropertyDeclaration, reflection);
const rc = context.withScope(reflection);

const signature = context.checker.getSignatureFromDeclaration(arrow);
Expand Down
2 changes: 2 additions & 0 deletions src/test/converter/class/access.ts
Expand Up @@ -50,4 +50,6 @@ export class PrivateClass {
* @protected
*/
fakeProtectedMethod() {}

private privateArrow = () => {};
}

0 comments on commit 9b4f898

Please sign in to comment.