Aer/tests/operators_precedence.aer
belliash 4d07a10336
All checks were successful
The build was successful.
One more callback test.
2019-04-05 09:13:29 +02:00

19 lines
415 B
Plaintext

class Program {
string[] testArray() {
return {'Machine' => 'Turing'};
}
callback[] testCallback() {
return {'callme' => void() { print("Hello world\n"); }};
}
void main() {
print($this->testArray()['Machine'] + "\n");
$this->testCallback()['callme']();
print(true ? "TRUE\n" : false ? "true\n" : "false\n");
(void(string $name) { print("This should work too - $name.\n");})('AerScript');
}
}