No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / exit_terminal_check.php
blob91a117565de2bf1f9abe20042602ed56678ce241
1 <?hh // partial
3 function main() {
4 try {
5 $foo = 'bar';
6 } catch (Exception $e) {
7 exit();
9 var_dump($foo);
12 main();
14 function main2(): int {
15 if (true) {
16 $x = 1;
17 } else {
18 exit(1);
20 return $x;
23 main2();
25 function main3($a): int {
26 if ($a) {
27 return 1;
28 } else {
29 exit(1);