Skip to content

Commit cde46a9

Browse files
committed
glayzzle#81 reproduce the error
1 parent 2372443 commit cde46a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/precedence.js

+7
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,11 @@ describe('Test precedence', function() {
119119
it('test + / *', function() {
120120
shouldBeSame('1 + 2 * 3', '1 + (2 * 3)');
121121
});
122+
it('test assign', function() {
123+
// https://github.com/glayzzle/php-parser/issues/81
124+
shouldBeSame(
125+
'$a and $b = $c and $d',
126+
'($a and ($b = $c)) and $d'
127+
);
128+
});
122129
});

0 commit comments

Comments
 (0)