This commit is contained in:
parent
62d8451d12
commit
cfc0342a10
17
tests/operators_precedence.aer
Normal file
17
tests/operators_precedence.aer
Normal 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");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
3
tests/operators_precedence.exp
Normal file
3
tests/operators_precedence.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Turing
|
||||||
|
Hello world
|
||||||
|
TRUE
|
Loading…
Reference in New Issue
Block a user