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
Error on self::class on non final classes
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
lambda_in_pipe.php
blob
939b9155d29be22e55e98382862cbf1dbef5b2bd
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
vec_filter
(
vec
<
int
>
$v
, (
function
(
int
):
bool
)
$_f
):
vec
<
int
> {
5
return
$v
;
6
}
7
8
function
test
(
vec
<
int
>
$v
):
vec
<
int
> {
9
return
$v
|
>
vec_filter
(
$$
,
function
(
$x
) {
return true
; });
10
}