Skip to content

Commit 9b4f898

Browse files
committed
fix: Arrow methods did not have modifiers set properly
Fixes #1452
1 parent 37e8a3c commit 9b4f898

File tree

4 files changed

+786
-737
lines changed

4 files changed

+786
-737
lines changed

src/lib/converter/symbols.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ function convertArrowAsMethod(
572572
symbol,
573573
nameOverride
574574
);
575+
setModifiers(arrow.parent as ts.PropertyDeclaration, reflection);
575576
const rc = context.withScope(reflection);
576577

577578
const signature = context.checker.getSignatureFromDeclaration(arrow);

src/test/converter/class/access.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,6 @@ export class PrivateClass {
5050
* @protected
5151
*/
5252
fakeProtectedMethod() {}
53+
54+
private privateArrow = () => {};
5355
}

0 commit comments

Comments
 (0)