2021-08-02 15:58:05 +02:00
|
|
|
use Preview.Variables;
|
|
|
|
use Preview.Functions;
|
|
|
|
use Preview.Classes;
|
|
|
|
|
|
|
|
public lib Main {
|
|
|
|
public class Program {
|
|
|
|
private var test: Test;
|
|
|
|
|
|
|
|
public constructor() {
|
|
|
|
this.test = Test(str);
|
|
|
|
}
|
|
|
|
|
2021-10-28 22:29:00 +02:00
|
|
|
public func Main(): empty {
|
2021-08-02 15:58:05 +02:00
|
|
|
output(str, test, test2, test3);
|
|
|
|
output(isTrue(test));
|
|
|
|
output(this.test.getName());
|
|
|
|
}
|
2021-08-14 16:41:25 +02:00
|
|
|
|
2021-10-28 22:29:00 +02:00
|
|
|
private func testForEach(): empty {
|
2021-10-28 15:11:13 +02:00
|
|
|
var loopList = [];
|
|
|
|
loopList.forEach(e => {
|
2021-08-14 16:41:25 +02:00
|
|
|
output(e);
|
|
|
|
});
|
|
|
|
}
|
2021-08-02 15:58:05 +02:00
|
|
|
}
|
|
|
|
}
|