We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576edee commit 1ae48c3Copy full SHA for 1ae48c3
src/main/java/org/luapp/language/handlers/ConstructorHandler.java
@@ -31,7 +31,7 @@ public void onEnterContext(ParserRuleContext enterContext) {
31
32
String abstractClass = this.getLuaPP().currentAbstract == null ? "" : this.getLuaPP().currentAbstract;
33
String currentClass = this.getLuaPP().currentClass == null ? "" : this.getLuaPP().currentClass;
34
- this.addToLuaPPResult("function " + currentClass + ":new(" + params + ")\n" +
+ this.addToLuaPPResult("function " + currentClass + ".new(" + params + ")\n" +
35
"\tlocal self = {}\n" +
36
"\tsetmetatable(self, " + currentClass +")" +
37
"\n" + (abstractClass.isEmpty() ? "" : ("\n\tfor k,v in pairs(" + abstractClass + ") do \n" +
0 commit comments