diff --git a/src/struct.ts b/src/struct.ts index e8edca8..528ebe4 100644 --- a/src/struct.ts +++ b/src/struct.ts @@ -154,10 +154,11 @@ export class Struct { // Generate Shortcut let out = ''; out += `${INDENT}template \n`; + out += INDENT; if (method.isStatic) { out += 'static '; } - out += `${INDENT}auto ${method.shortName}(Args&&... args) -> decltype(${call}) {\n`; + out += `auto ${method.shortName}(Args&&... args) -> decltype(${call}) {\n`; out += `${INDENT}${INDENT}return ${call};\n`; out += `${INDENT}}\n`; return out;