Let's test operators precedence.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-05 09:08:11 +02:00
parent 62d8451d12
commit cfc0342a10
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,17 @@
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");
}
}

View File

@ -0,0 +1,3 @@
Turing
Hello world
TRUE