Skip to content

Commit 1ae48c3

Browse files
committed
Change ":" to "." in ConstructorHandler as it is a static instantiation
1 parent 576edee commit 1ae48c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/luapp/language/handlers/ConstructorHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void onEnterContext(ParserRuleContext enterContext) {
3131

3232
String abstractClass = this.getLuaPP().currentAbstract == null ? "" : this.getLuaPP().currentAbstract;
3333
String currentClass = this.getLuaPP().currentClass == null ? "" : this.getLuaPP().currentClass;
34-
this.addToLuaPPResult("function " + currentClass + ":new(" + params + ")\n" +
34+
this.addToLuaPPResult("function " + currentClass + ".new(" + params + ")\n" +
3535
"\tlocal self = {}\n" +
3636
"\tsetmetatable(self, " + currentClass +")" +
3737
"\n" + (abstractClass.isEmpty() ? "" : ("\n\tfor k,v in pairs(" + abstractClass + ") do \n" +

0 commit comments

Comments
 (0)