Fix build break after oxidized regen
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / reactive_calls4.php
blobc80de5cde6f69658dede42a7cc7aa0396af31f60
1 <?hh // strict
3 <<__Rx>>
4 /* HH_FIXME[4110] */
5 function returnsReactive(): Rx<(function(): void)> {
8 <<__Rx>>
9 /* HH_FIXME[4110] */
10 function returnsNormal(): (function(): void) {
13 <<__Rx>>
14 function takesReactive(Rx<(function(): void)> $x): void {}
16 <<__Rx>>
17 function takesNormal((function(): void) $x): void {}
18 <<__Rx>>
19 function foo(): void {
20 // should be fine
21 takesReactive(returnsReactive());
22 // also okay
23 takesNormal(returnsReactive());
24 takesNormal(returnsNormal());
25 // not okay
26 takesReactive(returnsNormal());