Aer/tests/operators_precedence.aer
belliash afe978e366
All checks were successful
The build was successful.
Test call by dereferencing array.
2019-04-05 09:22:47 +02:00

21 lines
488 B
Plaintext

class Program {
string[] testArray() {
return {'Machine' => 'Turing'};
}
callback[] testCallback() {
return {'callme' => void() { print("Hello world\n"); }};
}
void main() {
callback[] $constr = {'print'};
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');
$constr[0]('Test finished.' + "\n");
}
}