From aea0d1a5ecb4b0a17c634bd5f5b2bd296435cb0b Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 13 Apr 2019 14:35:27 +0200 Subject: [PATCH] Workaround applied to make test working. --- tests/static_var.aer | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/static_var.aer b/tests/static_var.aer index b2b552c..3c6817e 100644 --- a/tests/static_var.aer +++ b/tests/static_var.aer @@ -10,11 +10,12 @@ class Program { } void main() { - for(int $i = 1; $i < 3; $i++) { + int $i, $j, $k; + for($i = 1; $i < 3; $i++) { print($i + $this->cycle('a', 'b') + PHP_EOL); - for(int $j = 1; $j < 5; $j++) { + for($j = 1; $j < 5; $j++) { print(' ' + $j + $this->cycle('a', 'b', 1) + PHP_EOL); - for(int $k = 1; $k < 3; $k++) { + for($k = 1; $k < 3; $k++) { print(' ' + $k + $this->cycle('c', 'd', 2) + PHP_EOL); } }