Browse Source

Test call by dereferencing array.

pull/50/head
Rafal Kupiec 2 years ago
parent
commit
afe978e366
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      tests/operators_precedence.aer
  2. +1
    -0
      tests/operators_precedence.exp

+ 2
- 0
tests/operators_precedence.aer View File

@ -9,10 +9,12 @@ class Program {
}
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");
}
}

+ 1
- 0
tests/operators_precedence.exp View File

@ -2,3 +2,4 @@ Turing
Hello world
TRUE
This should work too - AerScript.
Test finished.

Loading…
Cancel
Save