cclang/doc/target/test.bl

33 lines
786 B
Plaintext
Raw Normal View History

lib Tests
{
/*
declaration of some tests
*/
export class test1
{
export test_string: string = 'Hello';
export test_string_2: string = "Hello World";
export test_num: num = 1;
export test_num_2: num = 1.0;
export test_num_3: num = this.test_num + this.test_num_2;
export func dec_vars(): void
{
test_bool: bool = true;
test_bool_2: bool = false;
test_bool_3: bool = test_bool != test_bool_2; # true
}
export is_error(): bool
{
if (error != empty)
{
output(error.code + ' ' + error.message);
}
else
{
output('continue');
}
}
}
}