zephir icon indicating copy to clipboard operation
zephir copied to clipboard

Support cast in var.

Open joeyhub opened this issue 5 years ago • 1 comments

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.

joeyhub avatar Mar 26 '19 21:03 joeyhub

Maybe Zephir needs to borrow a complex operator test kit from another language to see if things should be changed.

dschissler avatar Mar 26 '19 23:03 dschissler