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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
test_lambda2.php
blob
f913342c559ae6339c604b088cd0baaaea465b55
1
<
?hh
//strict
2
3
function
normal
(
string
$s
):
int
{
4
return
1
;
5
}
6
7
<<
__Rx
>>
8
function
rx
():
void
{
9
$l
= <<
__NonRx
>>() ==> {
10
normal
(
"text"
);
11
};
12
// Not OK - lambda is not reactive
13
$l
();
14
}