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_catch.php
blob
928c808ca8812a83cff8d6ab4870b7813703bdf7
1
<
?hh
2
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
3
4
function
getit
():
int
{
return
32
; }
5
<<
__EntryPoint
>>
6
function
leaky
():
void
{
7
try
{
8
$x
=
getit
()
|
>
$$
/
0
;
9
}
10
catch
(
Exception
$_
) {
11
echo
(
$$
);
12
}
13
}