Typing changes for reactive functions
[hiphop-php.git] / hphp / hack / test / typecheck / reactive / reactive_calls1.php
blob7ab3e462a92d65b23324dbec39523284e91717e3
1 <?hh // strict
2 <<__Rx>>
3 function foo(): void {}
5 function baz(): void {}
6 function bar(): void {
7 // bar can call baz
8 baz();
9 // bar can call foo
10 foo();
13 <<__Rx>>
14 function qux(): void {
15 // qux can call foo
16 foo();
17 // qux cannot call baz
18 baz();