Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit c66df36

Browse files
committed
1 parent ad3899c commit c66df36

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/precedence.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ describe("Test precedence", function() {
119119
it("test assign with &&", function() {
120120
shouldBeSame("$a && $b = $c && $d", "$a && ($b = ($c && $d))");
121121
});
122+
it("test static lookup offsets", function() {
123+
shouldBeSame("(Foo::$bar)['baz']();", "Foo::$bar['baz']();");
124+
});
122125
/*it("test cast", function() {
123126
shouldBeSame("$a = (string)$b . $c", "$a = ((string)$b) . $c");
124127
shouldBeSame("$a = (string)$b->foo . $c", "$a = ((string)$b->foo) . $c");

0 commit comments

Comments
 (0)