New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / pending_trycatch7.php
blob9889fafb5d3882e6ac0004c2d42881e7ecb3f6aa
1 <?hh // strict
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
11 function might_throw(): void {}
13 function f(): int {
14 try {
15 try {
16 might_throw();
17 $x = 1;
18 } catch (Exception $e) {
20 } catch (Exception $e) {
21 $x = 4;
24 return $x;