cclang/cc_code_preview/Program/main.ccl

26 lines
551 B
Plaintext

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());
}
private func testForEach(): void {
var list = [];
list.forEach(e => {
output(e);
});
}
}
}