Skip to content

Commit

Permalink
int-mask test
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Oct 5, 2022
1 parent 0483ffd commit 71878a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Expand Up @@ -475,7 +475,7 @@ public function testBug6356b(): void
],
]);
}

public function testIntegerRangesAndConstants(): void
{
$this->checkExplicitMixed = true;
Expand Down
Expand Up @@ -44,4 +44,13 @@ public function test2($a, $b, $c, $j, $k, $l, $m): void {
$this->x = $l;
$this->x = $m;
}

const I_1=1;
const I_2=2;

/** @param int-mask<self::I_*> $flag */
public function sayHello($flag): void
{
$this->x = $flag;
}
}

0 comments on commit 71878a6

Please sign in to comment.