repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Typing changes for reactive functions
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
reactive
/
reactive_calls1.php
blob
7ab3e462a92d65b23324dbec39523284e91717e3
1
<
?hh
// strict
2
<<
__Rx
>>
3
function
foo
():
void
{}
4
5
function
baz
():
void
{}
6
function
bar
():
void
{
7
// bar can call baz
8
baz
();
9
// bar can call foo
10
foo
();
11
}
12
13
<<
__Rx
>>
14
function
qux
():
void
{
15
// qux can call foo
16
foo
();
17
// qux cannot call baz
18
baz
();
19
}