cclang/cc_code_preview/Program/main.cc

26 lines
551 B
C++
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;
public constructor() {
this.test = Test(str);
}
public func Main(): void {
output(str, test, test2, test3);
output(isTrue(test));
output(this.test.getName());
}
2021-08-14 16:41:25 +02:00
private func testForEach(): void {
var list = [];
list.forEach(e => {
output(e);
});
}
2021-08-02 15:58:05 +02:00
}
}