Aer/tests/operators_precedence.aer

18 lines
333 B
Plaintext
Raw Normal View History

2019-04-05 09:08:11 +02:00
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");
}
}