From 897505d4e98beb971e87a0dd73feab9e8ac2d048 Mon Sep 17 00:00:00 2001 From: carlosmiei <43336371+carlosmiei@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:26:07 +0200 Subject: [PATCH] refix test --- src/goTranspiler.ts | 4 ++++ tests/integration/source/transpilable.ts | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/goTranspiler.ts b/src/goTranspiler.ts index 706c73f..1aee6c6 100644 --- a/src/goTranspiler.ts +++ b/src/goTranspiler.ts @@ -236,6 +236,10 @@ export class GoTranspiler extends BaseTranspiler { return struct + "\n" + classMethods; } + printPropertyAccessModifiers (node) { + return ""; + } + printMethodDeclaration(node, identation) { const className = node.parent.name.escapedText; diff --git a/tests/integration/source/transpilable.ts b/tests/integration/source/transpilable.ts index 8a6569c..dd59729 100644 --- a/tests/integration/source/transpilable.ts +++ b/tests/integration/source/transpilable.ts @@ -1,8 +1,6 @@ class Second { - classProp: string = "classProp"; - public stringifyNumber(arg: number) { return arg.toString(); } @@ -32,7 +30,6 @@ class Test { var instance = new Second(); console.log(instance.stringifyNumber(4)); // should print 4 - console.log(instance.classProp); // should print "classProp" const arr = [1,2,3,4];