Skip to content

Bitwise Operator Or issue #14

@sergeyklay

Description

@sergeyklay

From @sergeyklay on August 15, 2015 19:31

php works fine

$a = 16;
$a |= $a >> 1; // 24
// the same as
// $a = $a | ($a >> 1);

zephir throws Zephir\ParseException with "Syntax error" message

var a;

let a = 16;
let a |= a >> 1;
Syntax error in /tmp/foo/foo/bar.zep on line 33

            let a |= a >> 1;
    --------------^

works fine

var a;

let a = 16;
let a = a | (a >> 1);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions