Let's test operators precedence.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
62d8451d12
commit
cfc0342a10
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
Turing
|
||||
Hello world
|
||||
TRUE
|
Loading…
Reference in New Issue