cclang/cc_code_preview/Program/main.ccl

26 lines
554 B
Plaintext
Raw Normal View History

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;
constructor() {
2021-08-02 15:58:05 +02:00
this.test = Test(str);
}
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
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
}
}