Generic way to check required reactivity for arguments at callsites
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / nullable_mayberx3.php
blobb1af18f89864d52288872f4b742ca3f69e2322ad
1 <?hh // strict
3 <<__Rx, __OnlyRxIfArgs>>
4 function f(<<__OnlyRxIfRxFunc>>?(function(): int) $f): void {
7 <<__Rx>>
8 function g1(): void {
9 // OK
10 f(() ==> {
11 return 1;
12 });