Skip to content

Commit

Permalink
fix #182
Browse files Browse the repository at this point in the history
  • Loading branch information
ichiriac committed Nov 18, 2018
1 parent ad3899c commit c66df36
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/precedence.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ describe("Test precedence", function() {
it("test assign with &&", function() {
shouldBeSame("$a && $b = $c && $d", "$a && ($b = ($c && $d))");
});
it("test static lookup offsets", function() {
shouldBeSame("(Foo::$bar)['baz']();", "Foo::$bar['baz']();");
});
/*it("test cast", function() {
shouldBeSame("$a = (string)$b . $c", "$a = ((string)$b) . $c");
shouldBeSame("$a = (string)$b->foo . $c", "$a = ((string)$b->foo) . $c");
Expand Down

0 comments on commit c66df36

Please sign in to comment.