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
/
try_finally_after_terminal_if.php
blob
95083b5cee191c0cfa81a805899d5fb61fe81ab5
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
function
takes_int
(
int
$x
):
void
{}
5
6
function
test
(
?
string
$x
):
void
{
7
if
((
int
)
$x
===
0
) {
8
return
;
9
}
10
$x
= (
int
)
$x
;
11
try
{
12
}
finally
{
13
takes_int
(
$x
);
14
}
15
}