Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
  • Loading branch information
thekid committed Feb 8, 2025
commit a7c7d79949f628d15cfe1cb35d7cbaf4c30a0616
11 changes: 11 additions & 0 deletions src/test/php/lang/ast/unittest/emit/PipelinesTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ public function run($arg) {
Assert::equals($expected, $r);
}

#[Test]
public function precedence() {
$r= $this->run('class %T {
public function run() {
return "te"."st" |> strtoupper(...);
}
}');

Assert::equals('TEST', $r);
}

#[Test]
public function rfc_example() {
$r= $this->run('class %T {
Expand Down
Loading