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
/
exit_terminal_check.php
blob
91a117565de2bf1f9abe20042602ed56678ce241
1
<
?hh
// partial
2
3
function
main
() {
4
try
{
5
$foo
=
'bar'
;
6
}
catch
(
Exception
$e
) {
7
exit
();
8
}
9
var_dump
(
$foo
);
10
}
11
12
main
();
13
14
function
main2
():
int
{
15
if
(
true
) {
16
$x
=
1
;
17
}
else
{
18
exit
(
1
);
19
}
20
return
$x
;
21
}
22
23
main2
();
24
25
function
main3
(
$a
):
int
{
26
if
(
$a
) {
27
return
1
;
28
}
else
{
29
exit
(
1
);
30
}
31
}