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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
pipe_lambda.php
blob
3db5e4b3fb3121b35f7a0fc8e8d6efaded6c8bbb
1
<
?hh
2
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3
4
function
getit
():
int
{
return
5
; }
5
6
<<
__EntryPoint
>>
7
function
testit
():
void
{
8
$f
=
getit
()
|
> (
$z
==>
$z
+ $$
);
9
$w
=
$f
(
100
);
10
echo
$w
;
11
}