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
New inference: improved error message for unresolved type
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
pipe_operator.php
blob
eba575d4c95cad716b0bbcac26d63fdfbcb9fc0d
1
<
?hh
// partial
2
3
function
foo
():
int
{
4
return
1
;
5
}
6
7
function
bar
(
int
$a
):
int
{
8
return
$a
+
1
;
9
}
10
11
function
piped
():
int
{
12
return
foo
()
|
>
bar
(
$$
);
13
}