Test call by dereferencing array.
Tous les contrôles ont réussi
The build was successful.

Cette révision appartient à :
2019-04-05 09:22:47 +02:00
Parent 4d07a10336
révision afe978e366
2 fichiers modifiés avec 3 ajouts et 0 suppressions

Voir le fichier

@@ -9,10 +9,12 @@ class Program {
} }
void main() { void main() {
callback[] $constr = {'print'};
print($this->testArray()['Machine'] + "\n"); print($this->testArray()['Machine'] + "\n");
$this->testCallback()['callme'](); $this->testCallback()['callme']();
print(true ? "TRUE\n" : false ? "true\n" : "false\n"); print(true ? "TRUE\n" : false ? "true\n" : "false\n");
(void(string $name) { print("This should work too - $name.\n");})('AerScript'); (void(string $name) { print("This should work too - $name.\n");})('AerScript');
$constr[0]('Test finished.' + "\n");
} }
} }

Voir le fichier

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