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