26 lines
554 B
Plaintext
26 lines
554 B
Plaintext
use Preview.Variables;
|
|
use Preview.Functions;
|
|
use Preview.Classes;
|
|
|
|
public lib Main {
|
|
public class Program {
|
|
private var test: Test;
|
|
|
|
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);
|
|
});
|
|
}
|
|
}
|
|
} |