Added logic to handle constructor for classes

This commit is contained in:
2021-10-29 12:18:26 +02:00
parent 4aaffca9cf
commit 257a190ffe
6 changed files with 54 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ public lib Preview.Classes {
public class Test {
private var _name: string;
public constructor(name: string) {
constructor(name: string) {
this._name = name;
}

View File

@@ -6,7 +6,7 @@ public lib Main {
public class Program {
private var test: Test;
public constructor() {
constructor() {
this.test = Test(str);
}