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
Fix bug in hack codegen for sets
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
lambda
/
hhvm_lambda3.php
blob
89b10fcce1db6bf5978c553d2923e7e76aaa414c
1
<
?hh
2
3
function
main
():
void
{
4
$capture1
=
"yo"
;
5
$get_func
= (
$x
,
$y
) ==> {
6
return
$more
==>
$x
.
$y
.
$capture1
.
$more
;
7
};
8
9
$f
=
$get_func
(
"one "
,
"two "
);
10
echo
$f
(
"
\n
"
);
11
}