namespace Test;
class ArrayIteratorTest
{
public static function test()
{
var arr, k, v;
let arr = new ArrayIterator();
for k, v in arr {
return k . v;
}
}
}
let included = this->getOption("included"); // assigned
// maybe assigned
if typeof included == "array" {
let included = (bool) included[field]; // possible
} else {
let included = (bool) included; // possible
}
}
@sergeyklay
Example
Now, the generate code:
Expect:
And https://github.com/phalcon/zephir/issues/1875 Can record whether the current context variable is assigned