Handle condition types for intersections
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / intersections_rx1.php
blobb8d095f131d98954e1c8fcf2671dfdadff18c969
1 <?hh
3 interface IRx {}
4 class Foo {}
5 class Bar {
6 <<__Rx, __OnlyRxIfImpl(IRx::class)>>
7 public function test(): void {}
10 <<__Rx, __AtMostRxAsArgs>>
11 function my_test_function(<<__OnlyRxIfImpl(IRx::class)>> Foo $foo): void {
12 $foo as Bar;
13 $foo->test();