Added logic to handle constructor for classes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -6,7 +6,7 @@ public lib Main {
|
||||
public class Program {
|
||||
private var test: Test;
|
||||
|
||||
public constructor() {
|
||||
constructor() {
|
||||
this.test = Test(str);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user