zephir
zephir copied to clipboard
Support cast in var.
If I do var x = (int)(a - b); I get unknown type, cast. It seems to just be hoping for a literal type or something (somehow magically works for function calls though).
Anonymous functions also don't seem to take a return type. Similarly float x = expr gives me strange results like unknown type, list.
Maybe Zephir needs to borrow a complex operator test kit from another language to see if things should be changed.