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_calls2.php
blob
890b198689e4a01fc446b3d96761675ae30adec4
1
<
?hh
// strict
2
3
<<
__Rx
>>
4
function
returnsReactive
():
Rx
<(
function
():
void
)> {
5
// UNSAFE
6
}
7
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
();
14
}