Typing changes for reactive functions
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / reactive_calls2.php
blob890b198689e4a01fc446b3d96761675ae30adec4
1 <?hh // strict
3 <<__Rx>>
4 function returnsReactive(): Rx<(function(): void)> {
5 // UNSAFE
8 <<__Rx>>
9 function foo(): void {
10 // returnsReactive is reactive
11 $x = returnsReactive();
12 // thing that returnsReactive returns is also reactive, no errors
13 $x();