cclang/cc_code_preview/Program/main.ccl

26 lines
561 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(): empty {
output(str, test, test2, test3);
output(isTrue(test));
output(this.test.getName());
}
private func testForEach(): empty {
var loopList = [];
loopList.forEach(e => {
output(e);
});
}
}
}