diff --git a/src/printer.js b/src/printer.js index e04ed7dd0..e023b0507 100644 --- a/src/printer.js +++ b/src/printer.js @@ -460,12 +460,12 @@ function genericPrintNoParens(path, options, print, args) { } case "MethodDefinition": case "TSAbstractMethodDefinition": - if (n.static) { - parts.push("static "); - } if (n.accessibility) { parts.push(n.accessibility + " "); } + if (n.static) { + parts.push("static "); + } if (n.type === "TSAbstractMethodDefinition") { parts.push("abstract "); } diff --git a/tests/typescript/conformance/ambient/__snapshots__/jsfmt.spec.js.snap b/tests/typescript/conformance/ambient/__snapshots__/jsfmt.spec.js.snap index ad119aa1d..a6a4515bf 100644 --- a/tests/typescript/conformance/ambient/__snapshots__/jsfmt.spec.js.snap +++ b/tests/typescript/conformance/ambient/__snapshots__/jsfmt.spec.js.snap @@ -52,7 +52,7 @@ declare class cls { static static(p): number; static q; private fn(); - static private fns(); + private static fns(); } `;